1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00
iiab/roles/nginx/tasks/only_nginx.yml

125 lines
3.5 KiB
YAML
Raw Normal View History

2019-11-19 17:25:51 +00:00
- name: Remove symlink /etc/apache2/sites-enabled/awstats.conf
file:
path: /etc/apache2/sites-enabled/awstats.conf
state: absent
2020-01-11 19:54:58 +00:00
- name: Install /etc/nginx/conf.d/awstats-nginx.conf from template, if awstats_enabled
template:
src: roles/awstats/templates/awstats-nginx.conf
dest: /etc/nginx/conf.d/awstats-nginx.conf
2020-01-12 00:51:44 +00:00
# owner: root
# group: root
# mode: '0644'
2020-01-11 19:54:58 +00:00
when: awstats_enabled | bool
- name: Remove NGINX support for AWStats, if not awstats_enabled
2019-11-19 17:25:51 +00:00
file:
path: /etc/nginx/conf.d/awstats-nginx.conf
state: absent
when: not awstats_enabled
2020-01-11 19:54:58 +00:00
- name: Remove symlink /etc/apache2/sites-enabled/calibre-web.conf
2019-10-22 11:14:51 +00:00
file:
path: /etc/apache2/sites-enabled/calibre-web.conf
2019-10-22 11:14:51 +00:00
state: absent
- name: Install /etc/nginx/conf.d/calibre-web-nginx.conf from template, if calibreweb_enabled
2020-01-11 19:54:58 +00:00
template:
src: roles/calibre-web/templates/calibre-web-nginx.conf.j2
dest: /etc/nginx/conf.d/calibre-web-nginx.conf
2020-01-12 00:51:44 +00:00
# owner: root
# group: root
# mode: '0644'
when: calibreweb_enabled | bool
2019-10-22 11:14:51 +00:00
- name: Remove NGINX support for Calibre-Web, if not calibreweb_enabled
2019-10-22 11:14:51 +00:00
file:
path: /etc/nginx/conf.d/calibre-web-nginx.conf
2019-10-22 11:14:51 +00:00
state: absent
when: not calibreweb_enabled
2020-01-11 19:54:58 +00:00
2019-10-22 11:14:51 +00:00
- name: Remove symlink /etc/apache2/sites-enabled/gitea.conf
2019-10-22 11:14:51 +00:00
file:
path: /etc/apache2/sites-enabled/gitea.conf
2019-10-22 11:14:51 +00:00
state: absent
- name: Install /etc/nginx/conf.d/gitea-nginx.conf from template, if gitea_enabled
2019-10-22 11:14:51 +00:00
template:
src: roles/gitea/templates/gitea-nginx.conf.j2
dest: /etc/nginx/conf.d/gitea-nginx.conf
2020-01-12 00:51:44 +00:00
# owner: root
# group: root
# mode: '0644'
when: gitea_enabled | bool
2019-10-22 11:14:51 +00:00
- name: Remove NGINX support for Gitea, if not gitea_enabled
2019-10-22 11:14:51 +00:00
file:
path: /etc/nginx/conf.d/gitea-nginx.conf
state: absent
when: not gitea_enabled
2019-10-22 11:14:51 +00:00
2020-01-11 19:54:58 +00:00
- name: Remove symlink /etc/apache2/sites-enabled/kiwix.conf
2019-10-22 11:14:51 +00:00
file:
path: /etc/apache2/sites-enabled/kiwix.conf
2019-10-22 11:14:51 +00:00
state: absent
- name: Install /etc/nginx/conf.d/kiwix-nginx.conf from template, if kiwix_enabled
2019-10-22 11:14:51 +00:00
template:
src: roles/kiwix/templates/kiwix-nginx.conf
dest: /etc/nginx/conf.d/kiwix-nginx.conf
2020-01-12 00:51:44 +00:00
# owner: root
# group: root
# mode: '0644'
when: kiwix_enabled | bool
2019-10-22 11:14:51 +00:00
- name: Remove NGINX support for Kiwix, if not kiwix_enabled
2019-10-22 11:14:51 +00:00
file:
path: /etc/nginx/conf.d/kiwix-nginx.conf
state: absent
when: not kiwix_enabled
2020-01-11 19:54:58 +00:00
2019-10-22 11:14:51 +00:00
- name: Remove symlink /etc/apache2/sites-enabled/kolibri.conf
2019-11-20 21:41:36 +00:00
file:
path: /etc/apache2/sites-enabled/kolibri.conf
2019-11-20 21:41:36 +00:00
state: absent
2019-10-22 11:14:51 +00:00
- name: Install /etc/nginx/conf.d/kolibri-nginx.conf from template, if kolibri_enabled
2019-10-22 11:14:51 +00:00
template:
src: roles/kolibri/templates/kolibri-nginx.conf.j2
dest: /etc/nginx/conf.d/kolibri-nginx.conf
2020-01-12 00:51:44 +00:00
# owner: root
# group: root
# mode: '0644'
when: kolibri_enabled | bool
2020-01-11 19:54:58 +00:00
- name: Remove NGINX support for Kolibri, if not kolibri_enabled
2019-10-22 11:14:51 +00:00
file:
path: /etc/nginx/conf.d/kolibri-nginx.conf
state: absent
when: not kolibri_enabled
2019-11-28 11:08:43 +00:00
2020-01-11 19:54:58 +00:00
- name: Remove symlink /etc/apache2/sites-enabled/sugarizer.conf
2019-11-28 11:08:43 +00:00
file:
path: /etc/apache2/sites-enabled/sugarizer.conf
2019-11-28 11:08:43 +00:00
state: absent
- name: Install /etc/nginx/conf.d/sugarizer-nginx.conf from template, if sugarizer_enabled
2019-11-28 11:08:43 +00:00
template:
src: roles/sugarizer/templates/sugarizer-nginx.conf
dest: /etc/nginx/conf.d/sugarizer-nginx.conf
2020-01-12 00:51:44 +00:00
# owner: root
# group: root
# mode: '0644'
when: sugarizer_enabled | bool
2020-01-11 19:54:58 +00:00
- name: Remove NGINX support for Sugarizer, if not sugarizer_enabled
2019-11-28 11:08:43 +00:00
file:
path: /etc/nginx/conf.d/sugarizer-nginx.conf
2019-11-28 11:08:43 +00:00
state: absent
when: not sugarizer_enabled