mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
3 iiab.ini descrips + rm excess '| bool' casts
This commit is contained in:
parent
7f2d43c493
commit
6e6fab170d
17 changed files with 29 additions and 30 deletions
|
@ -1,7 +1,7 @@
|
||||||
- name: Install AWStats if awstats_install
|
- name: Install AWStats if awstats_install
|
||||||
include_tasks: install.yml
|
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
|
- name: Enable AWStats
|
||||||
include_tasks: enable.yml
|
include_tasks: enable.yml
|
||||||
when: awstats_install | bool or awstats_installed is defined
|
when: awstats_install or awstats_installed is defined
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
- name: Install AzuraCast if azuracast_install
|
- name: Install AzuraCast if azuracast_install
|
||||||
include_tasks: install.yml
|
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
|
# TODO figure out what to turn off for azuracast
|
||||||
#- name: Enable AzuraCast
|
#- name: Enable AzuraCast
|
||||||
# include_tasks: enable.yml
|
# include_tasks: enable.yml
|
||||||
# when: azuracast_install | bool or azuracast_installed is defined | bool
|
# when: azuracast_install or azuracast_installed is defined | bool
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
- option: name
|
- option: name
|
||||||
value: calibre-web
|
value: calibre-web
|
||||||
- option: description
|
- 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
|
- option: calibreweb_url1
|
||||||
value: "{{ calibreweb_url1 }}"
|
value: "{{ calibreweb_url1 }}"
|
||||||
- option: calibreweb_url2
|
- option: calibreweb_url2
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
- name: Install DokuWiki
|
- name: Install DokuWiki
|
||||||
include_tasks: install.yml
|
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
|
- name: Enable DokuWiki
|
||||||
include_tasks: enable.yml
|
include_tasks: enable.yml
|
||||||
when: dokuwiki_install | bool or dokuwiki_installed is defined
|
when: dokuwiki_install or dokuwiki_installed is defined
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
- option: name
|
- option: name
|
||||||
value: gitea
|
value: gitea
|
||||||
- option: description
|
- 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
|
- option: gitea_run_directory
|
||||||
value: "{{ gitea_run_directory }}"
|
value: "{{ gitea_run_directory }}"
|
||||||
- option: gitea_url
|
- option: gitea_url
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
- name: Install Kolibri
|
- name: Install Kolibri
|
||||||
include_tasks: install.yml
|
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
|
- name: Enable Kolibri
|
||||||
include_tasks: enable.yml
|
include_tasks: enable.yml
|
||||||
when: kolibri_install | bool or kolibri_installed is defined
|
when: kolibri_install or kolibri_installed is defined
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
- name: Install Lokole {{ lokole_version }} if lokole_install
|
- name: Install Lokole {{ lokole_version }} if lokole_install
|
||||||
include_tasks: install.yml
|
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
|
- name: Enable Lokole
|
||||||
include_tasks: enable.yml
|
include_tasks: enable.yml
|
||||||
when: lokole_install | bool or lokole_installed is defined
|
when: lokole_install or lokole_installed is defined
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
- option: name
|
- option: name
|
||||||
value: mediawiki
|
value: mediawiki
|
||||||
- option: description
|
- 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
|
- option: mediawiki_src
|
||||||
value: "{{ mediawiki_src }}"
|
value: "{{ mediawiki_src }}"
|
||||||
- option: mediawiki_abs_path
|
- option: mediawiki_abs_path
|
||||||
|
|
|
@ -5,4 +5,3 @@
|
||||||
- name: Enable MediaWiki
|
- name: Enable MediaWiki
|
||||||
include_tasks: enable.yml
|
include_tasks: enable.yml
|
||||||
when: mediawiki_install or mediawiki_installed is defined
|
when: mediawiki_install or mediawiki_installed is defined
|
||||||
# when: mediawiki_enabled | bool
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
- name: "Install Moodle"
|
- name: "Install Moodle"
|
||||||
include_tasks: install.yml
|
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
|
- name: Enable Moodle
|
||||||
include_tasks: enable.yml
|
include_tasks: enable.yml
|
||||||
when: moodle_install | bool or moodle_installed is defined
|
when: moodle_install or moodle_installed is defined
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- include_tasks: install.yml
|
- 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
|
- include_tasks: enable.yml
|
||||||
when: mosquitto_install | bool or mosquitto_installed is defined
|
when: mosquitto_install or mosquitto_installed is defined
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
- option: name
|
- option: name
|
||||||
value: Munin
|
value: Munin
|
||||||
- option: description
|
- 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
|
- option: installed
|
||||||
value: "{{ munin_install }}"
|
value: "{{ munin_install }}"
|
||||||
- option: enabled
|
- option: enabled
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
- name: Configure wondershaper
|
- name: Configure wondershaper
|
||||||
include_tasks: wondershaper.yml
|
include_tasks: wondershaper.yml
|
||||||
when: wondershaper_install | bool or wondershaper_installed is defined
|
when: wondershaper_install or wondershaper_installed is defined
|
||||||
#tags: network, wondershaper
|
#tags: network, wondershaper
|
||||||
|
|
||||||
- name: (Re)Install named
|
- name: (Re)Install named
|
||||||
|
|
|
@ -15,13 +15,13 @@
|
||||||
name: "{{ proxy }}"
|
name: "{{ proxy }}"
|
||||||
state: stopped
|
state: stopped
|
||||||
async: 120
|
async: 120
|
||||||
when: squid_install | bool or squid_installed is defined
|
when: squid_install or squid_installed is defined
|
||||||
|
|
||||||
- name: Stop DansGuardian
|
- name: Stop DansGuardian
|
||||||
systemd:
|
systemd:
|
||||||
name: dansguardian
|
name: dansguardian
|
||||||
state: stopped
|
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
|
- name: Restart DansGuardian service (dansguardian) except Ubuntu which needs reboot to activate
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
#grep -r "not nginx_enabled" roles/
|
#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/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/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/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/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 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
|
||||||
|
|
||||||
- name: Enable Gitea for Apache
|
- name: Enable Gitea for Apache
|
||||||
command: a2ensite gitea.conf
|
command: a2ensite gitea.conf
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- include_tasks: install.yml
|
- 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
|
- include_tasks: enable.yml
|
||||||
when: nodered_install | bool or nodered_installed is defined
|
when: nodered_install or nodered_installed is defined
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
- name: Install 'sugarizer' if sugarizer_install and not Debian 10+
|
- name: Install 'sugarizer' if sugarizer_install and not Debian 10+
|
||||||
include_tasks: install.yml
|
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
|
- name: Enable 'sugarizer' if sugarizer_enabled
|
||||||
include_tasks: enable.yml
|
include_tasks: enable.yml
|
||||||
|
|
Loading…
Reference in a new issue