Set SELinux Context per mod_md issue #253

This commit is contained in:
Jason Rothstein 2021-10-25 23:14:58 -05:00
parent 4777716237
commit 3c73d234ad

View File

@ -125,6 +125,19 @@
loop: '{{ http_vhost }}'
loop_control:
label: '{{ item.fqdn }} will be ensured'
- name: 'base mod_md store'
when:
- ansible_system == 'Linux'
- ensure_apache is defined
- http_vhost is defined
- http_vhost is iterable
ansible.builtin.file:
group: 'root'
owner: 'root'
mode: '0770'
path: '/etc/httpd/md'
state: 'directory'
setype: 'system_u:object_r:httpd_var_lib_t:s0'
- name: 'base vhost document root'
when:
- ansible_system == 'Linux'