You've already forked ansible-role-customca
Find on controller not host-node
This commit is contained in:
@@ -1,16 +1,11 @@
|
|||||||
---
|
---
|
||||||
- name: Find trusted root certificates to add
|
|
||||||
- find:
|
|
||||||
paths: files/ca_certs
|
|
||||||
register: ca_cert_files
|
|
||||||
|
|
||||||
- name: Copy public certificate files
|
- name: Copy public certificate files
|
||||||
copy:
|
copy:
|
||||||
src: "{{ item.path }}"
|
src: "{{ item }}"
|
||||||
dest: /etc/pki/ca-trust/source/anchors/
|
dest: /etc/pki/ca-trust/source/anchors/
|
||||||
become: true
|
become: true
|
||||||
with_items: ca_cert_files.files
|
with_fileglob:
|
||||||
when: ca_cert_files.matched > 0
|
- "files/ca_certs/*"
|
||||||
notify: Update Trust Store
|
notify: Update Trust Store
|
||||||
|
|
||||||
- meta: flush_handlers
|
- meta: flush_handlers
|
||||||
|
|||||||
Reference in New Issue
Block a user