From 203d8b5392dfd708f515f264549bb05d1897c73f Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 21 Aug 2018 08:40:01 -0400 Subject: [PATCH] Update main.yml --- roles/httpd/tasks/main.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/roles/httpd/tasks/main.yml b/roles/httpd/tasks/main.yml index 7f50dd980..0b0f3ad61 100644 --- a/roles/httpd/tasks/main.yml +++ b/roles/httpd/tasks/main.yml @@ -51,11 +51,12 @@ - download when: is_redhat -- name: Remove the default apache2 config file (debuntu) - file: - path: /etc/apache2/sites-enabled/000-default.conf - state: absent - when: is_debuntu +# MOVED DOWN ~58 LINES +#- name: Remove the default apache2 config file (debuntu) +# file: +# path: /etc/apache2/sites-enabled/000-default.conf +# state: absent +# when: is_debuntu - name: Create httpd config files template: @@ -108,10 +109,13 @@ - 010-iiab.conf when: is_debuntu -- name: Remove the default apache2 config file (debuntu) +- name: Remove apache2 default config files (debuntu) file: - dest: /etc/apache2/000-default.conf + path: {{ item }} state: absent + with_items: + - /etc/apache2/000-default.conf + - /etc/apache2/sites-enabled/000-default.conf when: is_debuntu - name: Create http pid dir /var/run/{{ apache_user }}