blob: c5df3499f9f3599904a6e124ca6d85a08ee3bc39 [file] [log] [blame]
Zack Williamsc989f262017-05-11 13:02:59 -07001---
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 Williams79286962017-07-10 12:24:37 -07008 dest: "{{ head_credentials_dir }}/"
Zack Williamsc989f262017-05-11 13:02:59 -07009
10- name: Set ownership on credentials dir on head node, for MaaS provisioner
11 become: yes
12 file:
Zack Williams79286962017-07-10 12:24:37 -070013 dest: "{{ head_credentials_dir }}"
Zack Williamsc989f262017-05-11 13:02:59 -070014 state: directory
15 recurse: yes
16 owner: "{{ ansible_user_id }}"
17 group: "{{ ansible_user_gid }}"
18