mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Deprecated file removed
This commit is contained in:
parent
e54b6225c9
commit
afa674e120
1 changed files with 0 additions and 50 deletions
|
@ -1,50 +0,0 @@
|
||||||
# Apache
|
|
||||||
|
|
||||||
- name: Enable http://box{{ elgg_url }} via Apache # http://box/elgg
|
|
||||||
command: a2ensite elgg.conf
|
|
||||||
when: elgg_enabled | bool
|
|
||||||
|
|
||||||
- name: Disable http://box{{ elgg_url }} via Apache # http://box/elgg
|
|
||||||
command: a2dissite elgg.conf
|
|
||||||
when: not elgg_enabled
|
|
||||||
|
|
||||||
|
|
||||||
systemd:
|
|
||||||
name: "{{ apache_service }}"
|
|
||||||
state: restarted
|
|
||||||
|
|
||||||
# NGINX
|
|
||||||
|
|
||||||
- name: Enable http://box{{ elgg_url }} via NGINX, by installing {{ nginx_conf_dir }}/elgg-nginx.conf from template # http://box/elgg
|
|
||||||
template:
|
|
||||||
src: elgg-nginx.conf.j2
|
|
||||||
dest: "{{ nginx_conf_dir }}/elgg-nginx.conf" # /etc/nginx/conf.d
|
|
||||||
when: elgg_enabled | bool
|
|
||||||
|
|
||||||
- name: Disable http://box{{ elgg_url }} via NGINX, by removing {{ nginx_conf_dir }}/elgg-nginx.conf # http://box/elgg
|
|
||||||
file:
|
|
||||||
path: "{{ nginx_conf_dir }}/elgg-nginx.conf" # /etc/nginx/conf.d
|
|
||||||
state: absent
|
|
||||||
when: not elgg_enabled
|
|
||||||
|
|
||||||
- name: Restart 'nginx' systemd service
|
|
||||||
systemd:
|
|
||||||
name: nginx
|
|
||||||
state: restarted
|
|
||||||
|
|
||||||
|
|
||||||
- name: Add 'elgg' variable values to {{ iiab_ini_file }}
|
|
||||||
ini_file:
|
|
||||||
path: "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
|
|
||||||
section: elgg
|
|
||||||
option: "{{ item.option }}"
|
|
||||||
value: "{{ item.value | string }}"
|
|
||||||
with_items:
|
|
||||||
- option: name
|
|
||||||
value: Elgg
|
|
||||||
- option: description
|
|
||||||
value: '"Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications."'
|
|
||||||
- option: path
|
|
||||||
value: /opt/elgg
|
|
||||||
- option: elgg_enabled
|
|
||||||
value: "{{ elgg_enabled }}"
|
|
Loading…
Add table
Reference in a new issue