mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
patch 0002
This commit is contained in:
parent
3a1d427ea0
commit
cb344d7d47
60 changed files with 211 additions and 172 deletions
|
@ -10,6 +10,16 @@
|
|||
- download
|
||||
when: is_debian
|
||||
|
||||
- name: Install httpd required packages
|
||||
package: name={{ item }}
|
||||
state=present
|
||||
with_items:
|
||||
- apache2
|
||||
- php
|
||||
tags:
|
||||
- download
|
||||
when: is_ubuntu
|
||||
+
|
||||
- name: Install httpd required packages
|
||||
package: name={{ item }}
|
||||
state=present
|
||||
|
@ -20,13 +30,13 @@
|
|||
# - php-sqlite
|
||||
tags:
|
||||
- download
|
||||
when: not is_debian
|
||||
when: is_redhat
|
||||
|
||||
- name: remove the default apache2 config file
|
||||
file: path=/etc/apache2/sites-enabled/000-default.conf
|
||||
src=/etc/apache2/sites-available/000-default.conf
|
||||
state=absent
|
||||
when: is_debian
|
||||
+ when: is_debuntu
|
||||
|
||||
- name: Create httpd config files
|
||||
template: backup=yes
|
||||
|
@ -47,7 +57,7 @@
|
|||
with_items:
|
||||
- mpm_event.conf
|
||||
- mpm_event.load
|
||||
when: is_debian
|
||||
when: is_debuntu
|
||||
|
||||
- name: create symlinks for mpm-prefork
|
||||
file: path=/etc/apache2/mods-enabled/{{ item }}
|
||||
|
@ -56,7 +66,7 @@
|
|||
with_items:
|
||||
- mpm_prefork.conf
|
||||
- mpm_prefork.load
|
||||
when: is_debian
|
||||
when: is_debuntu
|
||||
|
||||
- name: turn on mod_proxy
|
||||
command: a2enmod {{ item }}
|
||||
|
@ -65,7 +75,7 @@
|
|||
- proxy_html
|
||||
- headers
|
||||
- rewrite
|
||||
when: is_debian
|
||||
when: is_debuntu
|
||||
|
||||
- name: create symlinks for enabling our site
|
||||
file: path=/etc/apache2/sites-enabled/{{ item }}
|
||||
|
@ -73,12 +83,12 @@
|
|||
state=link
|
||||
with_items:
|
||||
- 010-xsce.conf
|
||||
when: is_debian
|
||||
when: is_debuntu
|
||||
|
||||
- name: Remove the default site container
|
||||
file: dest=/etc/apache2/000-default.conf
|
||||
state=absent
|
||||
when: is_debian
|
||||
when: is_debuntu
|
||||
|
||||
- name: Create http pid dir
|
||||
file: path=/var/run/{{ apache_user }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue