--- | |
# copy-credentials/tasks/main.yml | |
- name: Copy (sync) the credentials directory to head node, for MaaS provisioner | |
become: yes | |
synchronize: | |
src: "{{ credentials_dir }}/" | |
dest: "{{ head_credentials_dir }}/" | |
- name: Set ownership on credentials dir on head node, for MaaS provisioner | |
become: yes | |
file: | |
dest: "{{ head_credentials_dir }}" | |
state: directory | |
recurse: yes | |
owner: "{{ ansible_user_id }}" | |
group: "{{ ansible_user_gid }}" | |