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

rm 25 *.deprecated files/dirs

This commit is contained in:
root 2020-04-20 11:07:00 -04:00
parent 2a63ca5bd6
commit cb1a708abb
25 changed files with 0 additions and 2078 deletions

View file

@ -1,30 +0,0 @@
#grep -r "not nginx_enabled" roles/
#roles/calibre-web/tasks/main.yml: when: calibreweb_enabled and not nginx_enabled | bool
#roles/calibre-web/tasks/main.yml: when: not nginx_enabled | bool
#roles/kolibri/tasks/main.yml: when: kolibri_enabled and not nginx_enabled | bool
#roles/kolibri/tasks/main.yml: when: not nginx_enabled | bool
#roles/kiwix/tasks/kiwix_install.yml: when: kiwix_enabled and not nginx_enabled | bool
#roles/kiwix/tasks/kiwix_install.yml: when: not nginx_enabled | bool
#roles/nginx/tasks/main.yml: when: not nginx_enabled | bool
#roles/nginx/tasks/main.yml: when: not nginx_enabled | bool
#roles/sugarizer/tasks/install.yml: when: sugarizer_enabled and not nginx_enabled | bool
#roles/sugarizer/tasks/install.yml: when: sugarizer_enabled and not nginx_enabled | bool
- name: Enable Gitea for Apache
command: a2ensite gitea.conf
- name: Enable Calibre-Web for Apache
command: a2ensite calibre-web.conf
- name: Enable Kolibri for Apache
command: a2ensite kolibri.conf
- name: Enable kiwix for Apache
command: a2ensite kiwix.conf
- name: Enable Sugarizer for Apache
command: a2ensite sugarizer.conf
- name: Enable AWStats for Apache
command: a2ensite awstats.conf

View file

@ -1,98 +0,0 @@
# The ~100 lines of code below are near-identical to what's in tasks/enable.yml
# for these 6 playbooks. Any way we can consolidate / reduce duplication?
- name: Remove symlink /etc/apache2/sites-enabled/awstats.conf
command: a2dissite awstats.conf
- 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
when: awstats_enabled | bool
- name: Remove NGINX support for AWStats, if not awstats_enabled
file:
path: /etc/nginx/conf.d/awstats-nginx.conf
state: absent
when: not awstats_enabled
- name: Remove symlink /etc/apache2/sites-enabled/calibre-web.conf
command: a2dissite calibre-web.conf
- name: Install /etc/nginx/conf.d/calibre-web-nginx.conf from template, if calibreweb_enabled
template:
src: roles/calibre-web/templates/calibre-web-nginx.conf.j2
dest: /etc/nginx/conf.d/calibre-web-nginx.conf
when: calibreweb_enabled | bool
- name: Remove NGINX support for Calibre-Web, if not calibreweb_enabled
file:
path: /etc/nginx/conf.d/calibre-web-nginx.conf
state: absent
when: not calibreweb_enabled
- name: Remove symlink /etc/apache2/sites-enabled/gitea.conf
command: a2dissite gitea.conf
- name: Install /etc/nginx/conf.d/gitea-nginx.conf from template, if gitea_enabled
template:
src: roles/gitea/templates/gitea-nginx.conf.j2
dest: /etc/nginx/conf.d/gitea-nginx.conf
when: gitea_enabled | bool
- name: Remove NGINX support for Gitea, if not gitea_enabled
file:
path: /etc/nginx/conf.d/gitea-nginx.conf
state: absent
when: not gitea_enabled
- name: Remove symlink /etc/apache2/sites-enabled/kiwix.conf
command: a2dissite kiwix.conf
- name: Install /etc/nginx/conf.d/kiwix-nginx.conf from template, if kiwix_enabled
template:
src: roles/kiwix/templates/kiwix-nginx.conf
dest: /etc/nginx/conf.d/kiwix-nginx.conf
when: kiwix_enabled | bool
- name: Remove NGINX support for Kiwix, if not kiwix_enabled
file:
path: /etc/nginx/conf.d/kiwix-nginx.conf
state: absent
when: not kiwix_enabled
- name: Remove symlink /etc/apache2/sites-enabled/kolibri.conf
command: a2dissite kolibri.conf
- name: Install /etc/nginx/conf.d/kolibri-nginx.conf from template, if kolibri_enabled
template:
src: roles/kolibri/templates/kolibri-nginx.conf.j2
dest: /etc/nginx/conf.d/kolibri-nginx.conf
when: kolibri_enabled | bool
- name: Remove NGINX support for Kolibri, if not kolibri_enabled
file:
path: /etc/nginx/conf.d/kolibri-nginx.conf
state: absent
when: not kolibri_enabled
- name: Remove symlink /etc/apache2/sites-enabled/sugarizer.conf
command: a2dissite sugarizer.conf
- name: Install /etc/nginx/conf.d/sugarizer-nginx.conf from template, if sugarizer_enabled
template:
src: roles/sugarizer/templates/sugarizer-nginx.conf
dest: /etc/nginx/conf.d/sugarizer-nginx.conf
when: sugarizer_enabled | bool
- name: Remove NGINX support for Sugarizer, if not sugarizer_enabled
file:
path: /etc/nginx/conf.d/sugarizer-nginx.conf
state: absent
when: not sugarizer_enabled

View file

@ -1,56 +0,0 @@
# The ~40 lines of code below are near-identical to what's in tasks/enable.yml
# for these 6 playbooks. Any way PR #2131 etc can help reduce duplication?
- name: Install {{ nginx_conf_dir }}/dokuwiki-nginx.conf from template, if dokuwiki_enabled
template:
src: dokuwiki-nginx.conf
dest: "{{ nginx_conf_dir }}/dokuwiki-nginx.conf" # /etc/nginx/conf.d
when: dokuwiki_enabled | bool
- name: Install {{ nginx_conf_dir }}/elgg-nginx.conf from template, if elgg_enabled
template:
src: elgg-nginx.conf
dest: "{{ nginx_conf_dir }}/elgg-nginx.conf" # /etc/nginx/conf.d
when: elgg_enabled | bool
- name: Install {{ nginx_conf_dir }}/lokole-nginx.conf from template, if lokole_enabled
template:
src: lokole-nginx.conf.j2
dest: "{{ nginx_conf_dir }}/lokole-nginx.conf" # /etc/nginx/conf.d
when: lokole_enabled | bool
- name: Install {{ nginx_conf_dir }}/moodle-nginx.conf from template, if moodle_enabled
template:
src: moodle-nginx.conf.j2
dest: "{{ nginx_conf_dir }}/moodle-nginx.conf" # /etc/nginx/conf.d
when: moodle_enabled | bool
- name: Install {{ nginx_conf_dir }}/nextcloud-nginx.conf from template, if nextcloud_enabled
template:
src: nextcloud-nginx.conf
dest: "{{ nginx_conf_dir }}/nextcloud-nginx.conf" # /etc/nginx/conf.d
when: nextcloud_enabled | bool
- name: Install {{ nginx_conf_dir }}/nodered-nginx.conf from template, if nodered_enabled
template:
src: nodered-nginx.conf.j2
dest: "{{ nginx_conf_dir }}/nodered-nginx.conf" # /etc/nginx/conf.d
# mode: '0666'
when: nodered_enabled | bool
# mediawiki and wordpress are no longer proxied
#- name: Install MediaWiki's nginx conf.d file from template
# template:
# src: mediawiki-nginx.conf.j2
# dest: /etc/nginx/conf.d/mediawiki-nginx.conf
# when: mediawiki_enabled
#- name: Install WordPress's nginx conf.d file from template
# template:
# src: wordpress-nginx.conf
# dest: /etc/nginx/conf.d/
# when: wordpress_enabled
#- name: Install proxpass to apache running on localhost