From a0c56cd5d57be45d511e12503375f1ef14e309a0 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Tue, 24 Nov 2020 15:31:39 +1300 Subject: [PATCH] Find on controller not host-node --- tasks/main.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 944a9f6..08669c2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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