diff --git a/tasks/main.yml b/tasks/main.yml index f10cbc2..2538041 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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'