Make the certificates directory instead of find it

This commit is contained in:
Jason Rothstein 2022-01-23 18:53:11 -06:00
parent d2fa1b290a
commit f4bb7b9d03

View File

@ -74,21 +74,15 @@
loop: '{{ ensure_mariadb.seboolean_list }}'
loop_control:
label: '{{ item.name }} will be {{ item.state }}'
- name: 'find certificates'
- name: 'mkdir certificates'
when:
- ansible_system == 'Linux'
- ensure_mariadb is defined
- ensure_mariadb.template_list is defined
- ensure_mariadb.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/my.cnf.d/certificates'
state: 'directory'
- name: 'ensure configurations'
when:
- ansible_system == 'Linux'