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: |
Andy Bavier | 7b90cb8 | 2017-06-22 10:33:00 -0400 | [diff] [blame] | 6 | src: "{{ 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 | |