Files
ansible-role-customca/tasks/main.yml
2020-11-24 15:15:55 +13:00

17 lines
369 B
YAML

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