From 9b53f51f0e68349eea2e3905d2b9286a037d9c16 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Sun, 4 Dec 2016 02:49:47 +0000 Subject: [PATCH] Disable rewrites on ipa servers Signed-off-by: Patrick Uiterwijk --- roles/ipa/server/files/ipa-rewrite.conf | 1 + roles/ipa/server/tasks/main.yml | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 roles/ipa/server/files/ipa-rewrite.conf diff --git a/roles/ipa/server/files/ipa-rewrite.conf b/roles/ipa/server/files/ipa-rewrite.conf new file mode 100644 index 0000000000..12722ee807 --- /dev/null +++ b/roles/ipa/server/files/ipa-rewrite.conf @@ -0,0 +1 @@ +# VERSION 6 - DO NOT REMOVE THIS LINE diff --git a/roles/ipa/server/tasks/main.yml b/roles/ipa/server/tasks/main.yml index 87cdaf05fa..fa89da9813 100644 --- a/roles/ipa/server/tasks/main.yml +++ b/roles/ipa/server/tasks/main.yml @@ -121,6 +121,14 @@ - config when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists +- name: Disable rewrites + copy: src=ipa-rewrite.conf dest=/etc/httpd/conf.d/ipa-rewrite.conf + notify: + - reload httpd + tags: + - ipa/server + - config + - name: Deploy configuration script copy: src=configure-ipa.sh dest=/root/configure-ipa.sh mode=0700 owner=root group=root register: config_deployed