From 08005d572426514be2816dae187d7c51087b0ea4 Mon Sep 17 00:00:00 2001 From: Jason Rothstein Date: Sun, 23 Jan 2022 18:50:18 -0600 Subject: [PATCH] Make the certificates directory instead of finding it --- tasks/main.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index eccbeb1..eb0830d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -74,21 +74,15 @@ loop: '{{ ensure_dovecot.seboolean_list }}' loop_control: label: '{{ item.name }} will be {{ item.state }}' -- name: 'find certificates' +- name: 'mkdir certificates' when: - ansible_system == 'Linux' - ensure_dovecot is defined - ensure_dovecot.template_list is defined - ensure_dovecot.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/dovecot/certificates' + state: 'directory' - name: 'ensure configurations' when: - ansible_system == 'Linux'