You've already forked ansible-role-customca
Find files and loop to debug easier
This commit is contained in:
@@ -1,9 +1,16 @@
|
|||||||
---
|
---
|
||||||
|
- name: Find trusted root certificates to add
|
||||||
|
- find:
|
||||||
|
paths: /var/log
|
||||||
|
register: ca_cert_files
|
||||||
|
|
||||||
- name: Copy public certificate files
|
- name: Copy public certificate files
|
||||||
copy:
|
copy:
|
||||||
src: files/ca_certs/
|
src: files/ca_certs/
|
||||||
dest: /etc/pki/ca-trust/source/anchors/
|
dest: /etc/pki/ca-trust/source/anchors/
|
||||||
become: true
|
become: true
|
||||||
|
with_items: ca_cert_files
|
||||||
|
when: ca_cert_files.matched > 0
|
||||||
notify: Update Trust Store
|
notify: Update Trust Store
|
||||||
|
|
||||||
- meta: flush_handlers
|
- meta: flush_handlers
|
||||||
|
|||||||
Reference in New Issue
Block a user