fetch_results.yaml 463 Bytes
Newer Older
1
2
3
- name: Fetch Results
  hosts: all
  gather_facts: true
4
  vars:
5
    workspace: '{{ ansible_facts["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_facts["hostname"] }}'
12
13
        rsync_opts:
          - --exclude=nodes