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

17 lines
355 B
YAML
Raw Normal View History

2020-11-23 14:22:21 +13:00
---
2020-11-24 14:40:36 +13:00
- name: Find trusted root certificates to add
- find:
paths: /var/log
register: ca_cert_files
2020-11-23 14:22:21 +13:00
- name: Copy public certificate files
copy:
2020-11-24 14:25:35 +13:00
src: files/ca_certs/
dest: /etc/pki/ca-trust/source/anchors/
2020-11-23 14:22:21 +13:00
become: true
2020-11-24 14:40:36 +13:00
with_items: ca_cert_files
when: ca_cert_files.matched > 0
2020-11-23 14:22:21 +13:00
notify: Update Trust Store
- meta: flush_handlers