1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

3 iiab.ini descrips + rm excess '| bool' casts

This commit is contained in:
root 2020-01-13 19:57:50 -05:00
parent 7f2d43c493
commit 6e6fab170d
17 changed files with 29 additions and 30 deletions

View file

@ -1,7 +1,7 @@
- name: Install AWStats if awstats_install
include_tasks: install.yml
when: awstats_install | bool and not awstats_installed is defined
when: awstats_install and not awstats_installed is defined
- name: Enable AWStats
include_tasks: enable.yml
when: awstats_install | bool or awstats_installed is defined
when: awstats_install or awstats_installed is defined

View file

@ -1,8 +1,8 @@
- name: Install AzuraCast if azuracast_install
include_tasks: install.yml
when: azuracast_install | bool and not azuracast_installed is defined | bool
when: azuracast_install and not azuracast_installed is defined | bool
# TODO figure out what to turn off for azuracast
#- name: Enable AzuraCast
# include_tasks: enable.yml
# when: azuracast_install | bool or azuracast_installed is defined | bool
# when: azuracast_install or azuracast_installed is defined | bool

View file

@ -66,7 +66,7 @@
- option: name
value: calibre-web
- option: description
value: '"calibre-web is a web app providing a clean interface for browsing, reading and downloading e-books."'
value: '"Calibre-Web is a web app providing a clean interface for browsing, reading and downloading e-books."'
- option: calibreweb_url1
value: "{{ calibreweb_url1 }}"
- option: calibreweb_url2

View file

@ -1,7 +1,7 @@
- name: Install DokuWiki
include_tasks: install.yml
when: dokuwiki_install | bool and not dokuwiki_installed is defined
when: dokuwiki_install and not dokuwiki_installed is defined
- name: Enable DokuWiki
include_tasks: enable.yml
when: dokuwiki_install | bool or dokuwiki_installed is defined
when: dokuwiki_install or dokuwiki_installed is defined

View file

@ -60,7 +60,7 @@
- option: name
value: gitea
- option: description
value: '"Gitea: Git with a cup of tea"'
value: '"Gitea is like GitHub for more offline communities: Git with a cup of tea"'
- option: gitea_run_directory
value: "{{ gitea_run_directory }}"
- option: gitea_url

View file

@ -1,7 +1,7 @@
- name: Install Kolibri
include_tasks: install.yml
when: kolibri_install | bool and not kolibri_installed is defined
when: kolibri_install and not kolibri_installed is defined
- name: Enable Kolibri
include_tasks: enable.yml
when: kolibri_install | bool or kolibri_installed is defined
when: kolibri_install or kolibri_installed is defined

View file

@ -1,7 +1,7 @@
- name: Install Lokole {{ lokole_version }} if lokole_install
include_tasks: install.yml
when: lokole_install | bool and not lokole_installed is defined
when: lokole_install and not lokole_installed is defined
- name: Enable Lokole
include_tasks: enable.yml
when: lokole_install | bool or lokole_installed is defined
when: lokole_install or lokole_installed is defined

View file

@ -45,7 +45,7 @@
- option: name
value: mediawiki
- option: description
value: '"mediawiki is a blog and web site management application."'
value: '"MediaWiki is a blog and web site management application, from the people who create Wikipedia."'
- option: mediawiki_src
value: "{{ mediawiki_src }}"
- option: mediawiki_abs_path

View file

@ -5,4 +5,3 @@
- name: Enable MediaWiki
include_tasks: enable.yml
when: mediawiki_install or mediawiki_installed is defined
# when: mediawiki_enabled | bool

View file

@ -1,7 +1,7 @@
- name: "Install Moodle"
include_tasks: install.yml
when: moodle_install | bool and not moodle_installed is defined
when: moodle_install and not moodle_installed is defined
- name: Enable Moodle
include_tasks: enable.yml
when: moodle_install | bool or moodle_installed is defined
when: moodle_install or moodle_installed is defined

View file

@ -1,5 +1,5 @@
- include_tasks: install.yml
when: mosquitto_install | bool and not mosquitto_installed is defined
when: mosquitto_install and not mosquitto_installed is defined
- include_tasks: enable.yml
when: mosquitto_install | bool or mosquitto_installed is defined
when: mosquitto_install or mosquitto_installed is defined

View file

@ -60,7 +60,7 @@
- option: name
value: Munin
- option: description
value: '"Munin is a networked resource monitoring tool that can help analyze resource trends and \"what just happened to kill our performance?\" problems."'
value: '"Munin is a networked resource monitoring tool that can help analyze resource trends and ''what just happened to kill our performance?'' problems."'
- option: installed
value: "{{ munin_install }}"
- option: enabled

View file

@ -48,7 +48,7 @@
- name: Configure wondershaper
include_tasks: wondershaper.yml
when: wondershaper_install | bool or wondershaper_installed is defined
when: wondershaper_install or wondershaper_installed is defined
#tags: network, wondershaper
- name: (Re)Install named

View file

@ -15,13 +15,13 @@
name: "{{ proxy }}"
state: stopped
async: 120
when: squid_install | bool or squid_installed is defined
when: squid_install or squid_installed is defined
- name: Stop DansGuardian
systemd:
name: dansguardian
state: stopped
when: dansguardian_install | bool or dansguardian_installed is defined
when: dansguardian_install or dansguardian_installed is defined
- name: Restart DansGuardian service (dansguardian) except Ubuntu which needs reboot to activate
systemd:

View file

@ -1,14 +1,14 @@
#grep -r "not nginx_enabled" roles/
#roles/calibre-web/tasks/main.yml: when: calibreweb_enabled | bool and not nginx_enabled | bool
#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 | bool and 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 | bool and 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 | bool and not nginx_enabled | bool
#roles/sugarizer/tasks/install.yml: when: sugarizer_enabled | bool and 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

View file

@ -1,5 +1,5 @@
- include_tasks: install.yml
when: nodered_install | bool and not nodered_installed is defined
when: nodered_install and not nodered_installed is defined
- include_tasks: enable.yml
when: nodered_install | bool or nodered_installed is defined
when: nodered_install or nodered_installed is defined

View file

@ -1,6 +1,6 @@
- name: Install 'sugarizer' if sugarizer_install and not Debian 10+
include_tasks: install.yml
when: not sugarizer_installed is defined and sugarizer_install | bool and not ((is_debian and not is_raspbian) and (not is_debian_8) and (not is_debian_9))
when: not sugarizer_installed is defined and sugarizer_install and not ((is_debian and not is_raspbian) and (not is_debian_8) and (not is_debian_9))
- name: Enable 'sugarizer' if sugarizer_enabled
include_tasks: enable.yml