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

17 lines
369 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:
2020-11-24 15:15:55 +13:00
paths: files/ca_certs
2020-11-24 14:40:36 +13:00
register: ca_cert_files
2020-11-23 14:22:21 +13:00
- name: Copy public certificate files
copy:
2020-11-24 15:15:55 +13:00
src: "{{ item.path }}"
2020-11-24 14:25:35 +13:00
dest: /etc/pki/ca-trust/source/anchors/
2020-11-23 14:22:21 +13:00
become: true
2020-11-24 15:15:55 +13:00
with_items: ca_cert_files.files
2020-11-24 14:40:36 +13:00
when: ca_cert_files.matched > 0
2020-11-23 14:22:21 +13:00
notify: Update Trust Store
- meta: flush_handlers