Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 1 | --- |
2 | # copy-cord/tasks/main.yml | ||||
3 | |||||
4 | - name: Copy (sync) the cord directory to head node | ||||
5 | become: yes | ||||
6 | synchronize: | ||||
7 | src: "{{ config_cord_dir }}/" | ||||
8 | dest: "{{ head_cord_dir }}/" | ||||
9 | |||||
10 | - name: Set ownership on CORD dir on head node | ||||
11 | become: yes | ||||
12 | file: | ||||
13 | dest: "{{ head_cord_dir }}" | ||||
14 | state: directory | ||||
15 | recurse: yes | ||||
16 | owner: "{{ ansible_user_id }}" | ||||
17 | group: "{{ ansible_user_gid }}" | ||||
18 |