mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
|
- name: Symlink /etc/apache2/sites-enabled/dokuwiki.conf to /etc/apache2/sites-available/dokuwiki.conf if dokuwiki_enabled (debuntu)
|
||
|
file:
|
||
|
src: /etc/apache2/sites-available/dokuwiki.conf
|
||
|
path: /etc/apache2/sites-enabled/dokuwiki.conf
|
||
|
state: link
|
||
|
when: dokuwiki_enabled and is_debuntu
|
||
|
|
||
|
- name: Remove symlink /etc/apache2/sites-enabled/dokuwiki.conf if not dokuwiki_enabled (debuntu)
|
||
|
file:
|
||
|
path: /etc/apache2/sites-enabled/dokuwiki.conf
|
||
|
state: absent
|
||
|
when: not dokuwiki_enabled and is_debuntu
|
||
|
|
||
|
- name: Restart Apache ({{ apache_service }}) to enable/disable DokuWiki's http://box/wiki
|
||
|
systemd:
|
||
|
name: "{{ apache_service }}"
|
||
|
daemon_reload: yes
|
||
|
state: restarted
|
||
|
|
||
|
- name: Add 'dokuwiki' variable values to {{ iiab_ini_file }}
|
||
|
ini_file:
|
||
|
path: "{{ iiab_ini_file }}"
|
||
|
section: dokuwiki
|
||
|
option: "{{ item.option }}"
|
||
|
value: "{{ item.value }}"
|
||
|
with_items:
|
||
|
- option: name
|
||
|
value: DokuWiki
|
||
|
- option: description
|
||
|
value: '"DokuWiki is a simple to use and highly versatile Open Source wiki software that does not require a database."'
|
||
|
- option: installed
|
||
|
value: "{{ dokuwiki_install }}"
|
||
|
- option: enabled
|
||
|
value: "{{ dokuwiki_enabled }}"
|
||
|
|