blob: 3434c2778331e912a9d8ca2add7b01a3740a11e4 [file] [log] [blame]
Zack Williamsc989f262017-05-11 13:02:59 -07001---
2# copy-profile/tasks/main.yml
3
4- name: Copy (sync) the cord_profile directory structure to head node
5 synchronize:
Zack Williamsc3dd2c82017-06-19 22:05:49 -07006 src: "{{ hostvars[groups['config'][0]]['config_cord_profile_dir'] }}/"
Zack Williamsc989f262017-05-11 13:02:59 -07007 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