From 8acf75dc1522de93a5e1117ca8ea79f0cc46a412 Mon Sep 17 00:00:00 2001 From: Jason Rothstein Date: Sun, 23 Jan 2022 18:49:55 -0600 Subject: [PATCH] Make the certificates directory instead of find it --- tasks/main.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 54dda11..5aacb79 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -74,21 +74,15 @@ loop: '{{ ensure_postfix.seboolean_list }}' loop_control: label: '{{ item.name }} will be {{ item.state }}' -- name: 'find certificates' +- name: 'mkdir certificates' when: - ansible_system == 'Linux' - ensure_postfix is defined - ensure_postfix.template_list is defined - ensure_postfix.template_list is iterable - ansible.builtin.find: - file_type: 'file' - paths: - - '/etc/httpd/md/domains/' - patterns: - - 'pubcert.pem' - - 'privkey.pem' - recurse: 'yes' - register: 'certificates' + ansible.builtin.file: + path: '/etc/postfix/certificates' + state: 'directory' - name: 'ensure configurations' when: - ansible_system == 'Linux'