2013-06-04 20:25:02 +00:00
|
|
|
---
|
|
|
|
# install apache(httpd)
|
|
|
|
- name: install apache
|
2014-01-01 19:15:11 +00:00
|
|
|
yum: name={{ item }} state=installed
|
2013-06-04 20:25:02 +00:00
|
|
|
with_items:
|
|
|
|
- httpd
|
|
|
|
- httpd-tools
|
|
|
|
tags:
|
|
|
|
- packages
|
2013-06-10 18:41:22 +00:00
|
|
|
- apache
|
2013-06-04 20:25:02 +00:00
|
|
|
|
|
|
|
- name: set apache running/enabled
|
2013-06-07 20:10:34 +00:00
|
|
|
service: name=httpd enabled=yes
|
2013-06-11 19:59:13 +00:00
|
|
|
ignore_errors: true
|
2013-06-07 20:10:34 +00:00
|
|
|
notify:
|
|
|
|
- restart apache
|
2013-06-04 20:25:02 +00:00
|
|
|
tags:
|
|
|
|
- service
|
2013-06-10 18:41:22 +00:00
|
|
|
- apache
|
2013-06-04 20:25:02 +00:00
|
|
|
|
|
|
|
# install hash randomization hotfix
|
|
|
|
- name: hotfix - copy over new httpd init script
|
2014-01-01 19:15:11 +00:00
|
|
|
copy: src="{{ files }}/hotfix/httpd/httpd.init" dest=/etc/init.d/httpd
|
2013-09-06 12:00:41 +00:00
|
|
|
owner=root group=root mode=0755
|
2013-06-04 20:25:02 +00:00
|
|
|
notify:
|
|
|
|
- restart apache
|
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- hotfix
|
2013-06-10 18:41:22 +00:00
|
|
|
- apache
|
2013-06-04 20:25:02 +00:00
|
|
|
|
|
|
|
- name: hotfix - copy over new httpd sysconfig
|
2014-01-01 19:15:11 +00:00
|
|
|
copy: src="{{ files }}/hotfix/httpd/httpd.sysconfig" dest=/etc/sysconfig/httpd
|
2013-06-04 20:25:02 +00:00
|
|
|
notify:
|
|
|
|
- restart apache
|
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- hotfix
|
2013-06-10 18:41:22 +00:00
|
|
|
- apache
|
2013-06-04 20:25:02 +00:00
|
|
|
|
2013-06-10 18:37:08 +00:00
|
|
|
- name: add appserver headers.conf
|
2014-01-01 19:15:11 +00:00
|
|
|
template: src="{{ files }}/httpd/headers.conf.j2" dest=/etc/httpd/conf.d/headers.conf
|
2013-06-10 18:37:08 +00:00
|
|
|
notify:
|
|
|
|
- restart apache
|
|
|
|
tags:
|
|
|
|
- config
|
2013-06-10 18:41:22 +00:00
|
|
|
- apache
|
2013-06-10 18:37:08 +00:00
|
|
|
|
|
|
|
- name: add apache_status location for collectd
|
2014-01-01 19:15:11 +00:00
|
|
|
template: src="{{ files }}/httpd/apachestatus.conf" dest=/etc/httpd/conf.d/apachestatus.conf
|
2013-06-10 18:37:08 +00:00
|
|
|
notify:
|
|
|
|
- restart apache
|
|
|
|
tags:
|
|
|
|
- config
|
2013-06-10 18:41:22 +00:00
|
|
|
- apache
|
2014-01-01 19:15:11 +00:00
|
|
|
|
2014-06-29 17:38:02 +00:00
|
|
|
- name: setup logrotate to our needs
|
|
|
|
copy: src="{{ files }}/httpd/httpd.logrotate" dest=/etc/logrotate.d/httpd
|
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- apache
|