mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
Currently the certifaictes are copied ot the server with the complete path that is provided within the playbook. This could result in unexpected file placements. Certificates should be placed in the /root folder for the deployment. Fixes #405 (copy_external_cert does not handle pathed items)
13 lines
550 B
YAML
13 lines
550 B
YAML
- name: Install - Initialize ipaserver_external_cert_files
|
|
set_fact:
|
|
ipaserver_external_cert_files: []
|
|
when: ipaserver_external_cert_files is undefined
|
|
- name: Install - Copy "{{ item }}" "{{ inventory_hostname }}':/root/'{{ item | basename }}"
|
|
copy:
|
|
src: "{{ item }}"
|
|
dest: "/root/{{ item | basename }}"
|
|
force: yes
|
|
- name: Install - Extend ipaserver_external_cert_files with "/root/{{ item | basename }}"
|
|
set_fact:
|
|
ipaserver_external_cert_files: "{{ ipaserver_external_cert_files }} + [ '/root/{{ item | basename }}' ]"
|