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

Update only_nginx.yml

This commit is contained in:
A Holt 2020-01-11 14:54:58 -05:00 committed by GitHub
parent c18248fdaa
commit 509d7421e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,130 +3,121 @@
path: /etc/apache2/sites-enabled/awstats.conf path: /etc/apache2/sites-enabled/awstats.conf
state: absent state: absent
- name: Install nginx support for awstats if awstats_enabled - name: Install /etc/nginx/conf.d/awstats-nginx.conf from template, if awstats_enabled
copy: template:
backup: no src: roles/awstats/templates/awstats-nginx.conf
src: "{{ item.src }}" dest: /etc/nginx/conf.d/awstats-nginx.conf
dest: "{{ item.dest }}" owner: root # Not nec? Remove?
mode: "{{ item.mode }}" group: root # Not nec? Remove?
owner: root mode: '0644' # Not nec? Remove?
group: root when: awstats_enabled | bool
with_items:
- { src: 'roles/awstats/templates/awstats-nginx.conf', dest: '/etc/nginx/conf.d/kiwix-nginx.conf' , mode: '0644' }
when: awstats_enabled
- name: Remove nginx support for AWStats - name: Remove NGINX support for AWStats, if not awstats_enabled
file: file:
path: /etc/nginx/conf.d/awstats-nginx.conf path: /etc/nginx/conf.d/awstats-nginx.conf
state: absent state: absent
when: not awstats_enabled when: not awstats_enabled
- name: Remove symlink /etc/apache2/sites-enabled/kiwix.conf - name: Remove symlink /etc/apache2/sites-enabled/kiwix.conf
file: file:
path: /etc/apache2/sites-enabled/kiwix.conf path: /etc/apache2/sites-enabled/kiwix.conf
state: absent state: absent
- name: Install nginx support for kiwix if kiwix_enabled - name: Install /etc/nginx/conf.d/kiwix-nginx.conf from template, if kiwix_enabled
copy: template:
backup: no src: roles/kiwix/templates/kiwix-nginx.conf
src: "{{ item.src }}" dest: /etc/nginx/conf.d/kiwix-nginx.conf
dest: "{{ item.dest }}" owner: root # Not nec? Remove?
mode: "{{ item.mode }}" group: root # Not nec? Remove?
owner: root mode: '0644' # Not nec? Remove?
group: root
with_items:
- { src: 'roles/kiwix/templates/kiwix-nginx.conf', dest: '/etc/nginx/conf.d/kiwix-nginx.conf' , mode: '0644' }
when: kiwix_enabled | bool when: kiwix_enabled | bool
- name: Remove nginx support for kiwix - name: Remove NGINX support for Kiwix, if not kiwix_enabled
file: file:
path: /etc/nginx/conf.d/kiwix-nginx.conf path: /etc/nginx/conf.d/kiwix-nginx.conf
state: absent state: absent
when: not kiwix_enabled | bool when: not kiwix_enabled
- name: Remove symlink /etc/apache2/sites-enabled/sugarizer.conf - name: Remove symlink /etc/apache2/sites-enabled/sugarizer.conf
file: file:
path: /etc/apache2/sites-enabled/sugarizer.conf path: /etc/apache2/sites-enabled/sugarizer.conf
state: absent state: absent
- name: "Install sugarizer-nginx.conf (nginx) if sugarizer_enabled" - name: Install /etc/nginx/conf.d/sugarizer-nginx.conf from template, if sugarizer_enabled
template: template:
src: "{{ item.src }}" src: roles/sugarizer/templates/sugarizer-nginx.conf
dest: "{{ item.dest }}" dest: /etc/nginx/conf.d/sugarizer-nginx.conf
mode: "{{ item.mode }}" owner: root # Not nec? Remove?
owner: root group: root # Not nec? Remove?
group: root mode: '0644' # Not nec? Remove?
with_items:
- { src: 'roles/sugarizer/templates/sugarizer-nginx.conf', dest: '/etc/nginx/conf.d/sugarizer-nginx.conf', mode: '0644' }
when: sugarizer_enabled | bool when: sugarizer_enabled | bool
- name: Remove nginx support for sugarizer - name: Remove NGINX support for Sugarizer, if not sugarizer_enabled
file: file:
path: /etc/nginx/conf.d/sugarizer-nginx.conf path: /etc/nginx/conf.d/sugarizer-nginx.conf
state: absent state: absent
when: not sugarizer_enabled | bool when: not sugarizer_enabled
- name: Remove /etc/apache2/sites-enabled/kolibri.conf
- name: Remove symlink /etc/apache2/sites-enabled/kolibri.conf
file: file:
path: /etc/apache2/sites-enabled/kolibri.conf path: /etc/apache2/sites-enabled/kolibri.conf
state: absent state: absent
- name: Supply /etc/nginx/conf.d/kolibri-nginx.conf when kolibri_enabled - name: Install /etc/nginx/conf.d/kolibri-nginx.conf from template, if kolibri_enabled
template: template:
src: "{{ item.src }}" src: roles/kolibri/templates/kolibri-nginx.conf.j2
dest: "{{ item.dest }}" dest: /etc/nginx/conf.d/kolibri-nginx.conf
mode: "{{ item.mode }}" owner: root # Not nec? Remove?
owner: root group: root # Not nec? Remove?
group: root mode: '0644' # Not nec? Remove?
with_items:
- { src: 'roles/kolibri/templates/kolibri-nginx.conf.j2', dest: '/etc/nginx/conf.d/kolibri-nginx.conf', mode: '0644' }
when: kolibri_enabled | bool when: kolibri_enabled | bool
- name: Remove nginx support for kolibri when not kolibri_enabled - name: Remove NGINX support for Kolibri, if not kolibri_enabled
file: file:
path: /etc/nginx/conf.d/kolibri-nginx.conf path: /etc/nginx/conf.d/kolibri-nginx.conf
state: absent state: absent
when: not kolibri_enabled | bool when: not kolibri_enabled
- name: Remove symlink /etc/apache2/sites-enabled/calibre-web.conf - name: Remove symlink /etc/apache2/sites-enabled/calibre-web.conf
file: file:
path: /etc/apache2/sites-enabled/calibre-web.conf path: /etc/apache2/sites-enabled/calibre-web.conf
state: absent state: absent
- name: Install /etc/nginx/conf.d/calibre-web-nginx.conf - name: Install /etc/nginx/conf.d/calibre-web-nginx.conf from template, if calibreweb_enabled
template: template:
src: "{{ item.src }}" src: roles/calibre-web/templates/calibre-web-nginx.conf.j2
dest: "{{ item.dest }}" dest: /etc/nginx/conf.d/calibre-web-nginx.conf
owner: root owner: root # Not nec? Remove?
group: root group: root # Not nec? Remove?
mode: "{{ item.mode }}" mode: '0644' # Not nec? Remove?
with_items: when: calibreweb_enabled | bool
- { src: 'roles/calibre-web/templates/calibre-web-nginx.conf.j2', dest: '/etc/nginx/conf.d/calibre-web-nginx.conf', mode: '0644' }
when: calibreweb_enabled
- name: Remove nginx support for Calibre-Web - name: Remove NGINX support for Calibre-Web, if not calibreweb_enabled
file: file:
path: /etc/nginx/conf.d/calibre-web-nginx.conf path: /etc/nginx/conf.d/calibre-web-nginx.conf
state: absent state: absent
when: not calibreweb_enabled when: not calibreweb_enabled
- name: Remove symlink /etc/apache2/sites-enabled/gitea.conf - name: Remove symlink /etc/apache2/sites-enabled/gitea.conf
file: file:
path: /etc/apache2/sites-enabled/gitea.conf path: /etc/apache2/sites-enabled/gitea.conf
state: absent state: absent
- name: Install /etc/nginx/conf.d/gitea-nginx.conf - name: Install /etc/nginx/conf.d/gitea-nginx.conf from template, if gitea_enabled
template: template:
src: "{{ item.src }}" src: roles/gitea/templates/gitea-nginx.conf.j2
dest: "{{ item.dest }}" dest: /etc/nginx/conf.d/gitea-nginx.conf
owner: root owner: root # Not nec? Remove?
group: root group: root # Not nec? Remove?
mode: "{{ item.mode }}" mode: '0644' # Not nec? Remove?
with_items: when: gitea_enabled | bool
- { src: 'roles/gitea/templates/gitea-nginx.conf.j2', dest: '/etc/nginx/conf.d/gitea-nginx.conf', mode: '0644' }
when: gitea_enabled
- name: Remove nginx support for Gitea - name: Remove NGINX support for Gitea, if not gitea_enabled
file: file:
path: /etc/nginx/conf.d/gitea-nginx.conf path: /etc/nginx/conf.d/gitea-nginx.conf
state: absent state: absent