Find certificates and include them by direct name

This commit is contained in:
2021-10-31 01:29:43 -05:00
parent 248787e188
commit 1047752534
3 changed files with 28 additions and 2 deletions

View File

@@ -74,6 +74,21 @@
loop: '{{ ensure_mariadb.seboolean_list }}'
loop_control:
label: '{{ item.name }} will be {{ item.state }}'
- name: 'find 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'
recursive: 'yes'
register: 'certificates'
- name: 'ensure configurations'
when:
- ansible_system == 'Linux'