fetch_results.yaml 445 Bytes
Newer Older
1
2
3
- name: Fetch Results
  hosts: all
  gather_facts: true
4
5
  vars:
    workspace: '{{ ansible_user_dir }}/sb-workspace'
6
7
8
9
  tasks:
    - name: Synchronize Output Directory
      ansible.posix.synchronize:
        mode: pull
10
        src: '{{ sb_output_dir if sb_output_dir.startswith("/") else workspace + "/" + sb_output_dir  }}/'
11
        dest: '{{ absolute_output_dir }}/nodes/{{ ansible_hostname }}'
12
13
        rsync_opts:
          - --exclude=nodes