Find on controller not host-node

This commit is contained in:
2020-11-24 15:31:39 +13:00
parent bfa2b81c04
commit a0c56cd5d5

View File

@@ -1,16 +1,11 @@
---
- 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 }}"
src: "{{ item }}"
dest: /etc/pki/ca-trust/source/anchors/
become: true
with_items: ca_cert_files.files
when: ca_cert_files.matched > 0
with_fileglob:
- "files/ca_certs/*"
notify: Update Trust Store
- meta: flush_handlers