From a5d5bfff7f53d623739e7dce00a223abe24621c8 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 2 Feb 2015 00:39:49 +0000 Subject: [PATCH] Try and make proxies not replace files twice and also fix el7 python hash hotfix. --- .../hotfix/httpd/httpd.sysconfig.el7 | 1 + roles/httpd/proxy/tasks/main.yml | 11 ----------- tasks/apache.yml | 13 ++++++++++++- 3 files changed, 13 insertions(+), 12 deletions(-) rename roles/httpd/proxy/files/sysconfig-httpd => files/hotfix/httpd/httpd.sysconfig.el7 (53%) diff --git a/roles/httpd/proxy/files/sysconfig-httpd b/files/hotfix/httpd/httpd.sysconfig.el7 similarity index 53% rename from roles/httpd/proxy/files/sysconfig-httpd rename to files/hotfix/httpd/httpd.sysconfig.el7 index 345a7c4244..25ee7cee37 100644 --- a/roles/httpd/proxy/files/sysconfig-httpd +++ b/files/hotfix/httpd/httpd.sysconfig.el7 @@ -1 +1,2 @@ export OPENSSL_NO_DEFAULT_ZLIB=1 +export PYTHONHASHSEED=random diff --git a/roles/httpd/proxy/tasks/main.yml b/roles/httpd/proxy/tasks/main.yml index 99d6a500b7..15f37baf84 100644 --- a/roles/httpd/proxy/tasks/main.yml +++ b/roles/httpd/proxy/tasks/main.yml @@ -24,17 +24,6 @@ - forwarded.conf - 00-namevirtualhost.conf - 01-keepalives.conf - - headers.conf - notify: - - restart httpd - tags: - - httpd - - httpd/proxy - -- name: And, copy in /etc/sysconfig/httpd - copy: > - src=sysconfig-httpd dest=/etc/sysconfig/httpd - owner=root group=root mode=0644 notify: - restart httpd tags: diff --git a/tasks/apache.yml b/tasks/apache.yml index 2080884136..1b941a98e5 100644 --- a/tasks/apache.yml +++ b/tasks/apache.yml @@ -29,8 +29,19 @@ - hotfix - apache -- name: hotfix - copy over new httpd sysconfig +- name: hotfix - copy over new httpd sysconfig (el6) copy: src="{{ files }}/hotfix/httpd/httpd.sysconfig" dest=/etc/sysconfig/httpd + when: ansible_distribution_major_version == '6' + notify: + - restart apache + tags: + - config + - hotfix + - apache + +- name: hotfix - copy over new httpd sysconfig (el7) + copy: src="{{ files }}/hotfix/httpd/httpd.sysconfig" dest=/etc/sysconfig/httpd + when: ansible_distribution_major_version == '7' notify: - restart apache tags: