From ea4186e79476624b16e1f8c4defdf7c3600247d3 Mon Sep 17 00:00:00 2001 From: Solomon Gifford Date: Mon, 16 Nov 2015 23:20:54 -0500 Subject: [PATCH] Leaves the NameVirtualHost in the same location in the file --- vars/RedHat.yml | 2 +- vars/apache-22.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/RedHat.yml b/vars/RedHat.yml index 6036a40..72aa3d2 100644 --- a/vars/RedHat.yml +++ b/vars/RedHat.yml @@ -15,5 +15,5 @@ __apache_packages: apache_ports_configuration_items: - regexp: "^Listen " line: "Listen {{ apache_listen_port }}" - - regexp: "^NameVirtualHost " + - regexp: "^#?NameVirtualHost " line: "NameVirtualHost *:{{ apache_listen_port }}" diff --git a/vars/apache-22.yml b/vars/apache-22.yml index eb856be..97fba44 100644 --- a/vars/apache-22.yml +++ b/vars/apache-22.yml @@ -7,6 +7,6 @@ apache_ports_configuration_items: line: "Listen {{ apache_listen_port }}" } - { - regexp: "^NameVirtualHost ", + regexp: "^#?NameVirtualHost ", line: "NameVirtualHost *:{{ apache_listen_port }}" }