Fixed broken loop

This commit is contained in:
2020-11-24 15:15:55 +13:00
parent 7288352751
commit bfa2b81c04

View File

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