From 8146f4dd60fab16e31496afac761f918d58d126d Mon Sep 17 00:00:00 2001 From: Seth Shaw Date: Fri, 19 Oct 2018 14:26:48 -0700 Subject: [PATCH] add CentOS 7 support creates the conf directories available in Ubuntu so playbooks that expect them won't crash. --- tasks/config_webserver.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tasks/config_webserver.yml b/tasks/config_webserver.yml index 53e815d..69a679c 100644 --- a/tasks/config_webserver.yml +++ b/tasks/config_webserver.yml @@ -1,3 +1,14 @@ +- name: Create httpd config directories for CentOS + file: + path: "{{httpd_conf_directory}}/{{ item }}/" + state: directory + owner: "{{ matomo_user }}" + group: "{{ matomo_user }}" + mode: "urwx,gr,o-rwx" + with_items: + - "conf-available" + - "conf-enabled" + when: ansible_os_family == "RedHat" - name: Install matomo httpd config file template: