1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

move dokuwiki shim

This commit is contained in:
Jerry Vonau 2020-01-04 05:28:47 -06:00
parent 79c5c34182
commit 31522b22cb
2 changed files with 17 additions and 0 deletions

View file

@ -11,11 +11,25 @@
state: absent
when: not dokuwiki_enabled and is_debuntu
- name: Install {{ nginx_config_dir }}/dokuwiki-nginx.conf SHIM from template
template:
src: dokuwiki-nginx.conf
dest: "{{ nginx_config_dir }}/dokuwiki-nginx.conf"
when: dokuwiki_enabled and nginx_enabled
- name: Restart Apache ({{ apache_service }}) to enable/disable DokuWiki's http://box/wiki
systemd:
name: "{{ apache_service }}"
daemon_reload: yes
state: restarted
when: apache_enabled
- name: Restart nginx to enable/disable DokuWiki's http://box/wiki
systemd:
name: nginx
daemon_reload: yes
state: restarted
when: nginx_enabled
- name: Add 'dokuwiki' variable values to {{ iiab_ini_file }}
ini_file:

View file

@ -0,0 +1,3 @@
location {{ dokuwiki_url }} {
proxy_pass http://127.0.0.1:{{ apache_port }}{{ dokuwiki_url }};
}