Files
ansible-role-customca/tasks/main.yml

17 lines
355 B
YAML

---
- name: Find trusted root certificates to add
- find:
paths: /var/log
register: ca_cert_files
- name: Copy public certificate files
copy:
src: files/ca_certs/
dest: /etc/pki/ca-trust/source/anchors/
become: true
with_items: ca_cert_files
when: ca_cert_files.matched > 0
notify: Update Trust Store
- meta: flush_handlers