From 7288352751afe1688bd2173d13e858534a73b597 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Tue, 24 Nov 2020 14:40:36 +1300 Subject: [PATCH] Find files and loop to debug easier --- tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index bca8c45..f9a189a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,9 +1,16 @@ --- +- name: Find trusted root certificates to add +- find: + paths: /var/log + register: ca_cert_files + - name: Copy public certificate files copy: src: files/ca_certs/ dest: /etc/pki/ca-trust/source/anchors/ become: true + with_items: ca_cert_files + when: ca_cert_files.matched > 0 notify: Update Trust Store - meta: flush_handlers