Find certificates and include them by direct name
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user