- add supervisor restart handler
- add apache tasklist - with hotfixes for hashseed randomization
This commit is contained in:
parent
0df91f6a22
commit
3652b82b24
5 changed files with 197 additions and 1 deletions
32
tasks/apache.yml
Normal file
32
tasks/apache.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
# install apache(httpd)
|
||||
- name: install apache
|
||||
yum: name=$item state=installed
|
||||
with_items:
|
||||
- httpd
|
||||
- httpd-tools
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: set apache running/enabled
|
||||
service: name=httpd state=running enabled=yes
|
||||
tags:
|
||||
- service
|
||||
|
||||
# install hash randomization hotfix
|
||||
- name: hotfix - copy over new httpd init script
|
||||
copy: src=$files/hotfix/httpd/httpd.init dest=/etc/init.d/httpd
|
||||
notify:
|
||||
- restart apache
|
||||
tags:
|
||||
- config
|
||||
- hotfix
|
||||
|
||||
- name: hotfix - copy over new httpd sysconfig
|
||||
copy: src=$files/hotfix/httpd/httpd.sysconfig dest=/etc/sysconfig/httpd
|
||||
notify:
|
||||
- restart apache
|
||||
tags:
|
||||
- config
|
||||
- hotfix
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue