mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
gitea dokuwiki nginx support
This commit is contained in:
parent
5f9a604e65
commit
e71ae36a98
7 changed files with 56 additions and 4 deletions
|
@ -21,18 +21,30 @@
|
|||
src: gitea.conf.j2
|
||||
dest: "/etc/{{ apache_config_dir }}/gitea.conf"
|
||||
|
||||
- name: Enable httpd conf file (debuntu)
|
||||
- name: Enable httpd conf file (apache)
|
||||
file:
|
||||
src: /etc/{{ apache_config_dir }}/gitea.conf
|
||||
dest: /etc/apache2/sites-enabled/gitea.conf
|
||||
state: link
|
||||
when: gitea_enabled and is_debuntu
|
||||
|
||||
- name: Remove httpd conf file (OS's other than debuntu)
|
||||
- name: Remove apache httpd conf file (OS's other than debuntu)
|
||||
file:
|
||||
path: /etc/apache2/sites-enabled/gitea.conf
|
||||
state: absent
|
||||
when: not gitea_enabled and is_debuntu
|
||||
when: not gitea_enabled or nginx_enabled
|
||||
|
||||
- name: Remove nginx httpd conf file
|
||||
file:
|
||||
path: /etc/nginx/conf.d/gitea-nginx.conf
|
||||
state: absent
|
||||
when: not gitea_enabled
|
||||
|
||||
- name: Enable nginx httpd conf file
|
||||
template:
|
||||
src: gitea-nginx.conf.j2
|
||||
dest: /etc/nginx/conf.d/gitea-nginx.conf
|
||||
when: gitea_enabled and nginx_enabled
|
||||
|
||||
- name: >-
|
||||
Restart Apache ({{ apache_service }}) to {% if gitea_enabled %}enable{%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue