mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
add Jerry's fix for disabling on Redhat
This commit is contained in:
parent
80cbdbae51
commit
21aa6490f9
1 changed files with 7 additions and 2 deletions
|
@ -95,17 +95,22 @@
|
||||||
- name: Install config file for elgg in Apache
|
- name: Install config file for elgg in Apache
|
||||||
template: src=elgg.conf dest=/etc/{{ apache_config_dir }}/elgg.conf
|
template: src=elgg.conf dest=/etc/{{ apache_config_dir }}/elgg.conf
|
||||||
|
|
||||||
- name: enable elgg
|
- name: Enable elgg for debuntu (will already be enabled above for Redhat)
|
||||||
file: path=/etc/apache2/sites-enabled/elgg.conf
|
file: path=/etc/apache2/sites-enabled/elgg.conf
|
||||||
src=/etc/apache2/sites-available/elgg.conf
|
src=/etc/apache2/sites-available/elgg.conf
|
||||||
state=link
|
state=link
|
||||||
when: elgg_enabled and is_debuntu
|
when: elgg_enabled and is_debuntu
|
||||||
|
|
||||||
- name: disable elgg
|
- name: Disable elgg for debuntu
|
||||||
file: path=/etc/apache2/sites-enabled/elgg.conf
|
file: path=/etc/apache2/sites-enabled/elgg.conf
|
||||||
state=absent
|
state=absent
|
||||||
when: not elgg_enabled and is_debuntu
|
when: not elgg_enabled and is_debuntu
|
||||||
|
|
||||||
|
- name: Disable elgg for Redhat - remove config file for elgg in Apache
|
||||||
|
file: dest=/etc/{{ apache_config_dir }}/elgg.conf
|
||||||
|
state=absent
|
||||||
|
when: not elgg_enabled and is_redhat
|
||||||
|
|
||||||
- name: add elgg to service list
|
- name: add elgg to service list
|
||||||
ini_file: dest='{{ service_filelist }}'
|
ini_file: dest='{{ service_filelist }}'
|
||||||
section=elgg
|
section=elgg
|
||||||
|
|
Loading…
Reference in a new issue