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 }}/" |
Zack Williams | 7928696 | 2017-07-10 12:24:37 -0700 | [diff] [blame] | 8 | dest: "{{ head_credentials_dir }}/" |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 9 | |
| 10 | - name: Set ownership on credentials dir on head node, for MaaS provisioner |
| 11 | become: yes |
| 12 | file: |
Zack Williams | 7928696 | 2017-07-10 12:24:37 -0700 | [diff] [blame] | 13 | dest: "{{ head_credentials_dir }}" |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 14 | state: directory |
| 15 | recurse: yes |
| 16 | owner: "{{ ansible_user_id }}" |
| 17 | group: "{{ ansible_user_gid }}" |
| 18 | |