Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 1 | --- |
| 2 | # copy-profile/tasks/main.yml |
| 3 | |
| 4 | - name: Copy (sync) the cord_profile directory structure to head node |
| 5 | synchronize: |
Zack Williams | c3dd2c8 | 2017-06-19 22:05:49 -0700 | [diff] [blame^] | 6 | src: "{{ hostvars[groups['config'][0]]['config_cord_profile_dir'] }}/" |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 7 | dest: "{{ head_cord_profile_dir }}/" |
| 8 | delete: yes |
| 9 | |
| 10 | - name: Set ownership on cord_profile dir on head node |
| 11 | file: |
| 12 | dest: "{{ head_cord_profile_dir }}" |
| 13 | state: directory |
| 14 | recurse: yes |
| 15 | owner: "{{ ansible_user_id }}" |
| 16 | group: "{{ ansible_user_gid }}" |
| 17 | |