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