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

Remove "| bool" 1.5yrs later, as Ansible 2.10 changed conditional_bare_variables default

This commit is contained in:
root 2020-10-16 16:46:19 -04:00
parent 2968a8a20e
commit ca171fbc1c
158 changed files with 2072 additions and 2072 deletions

View file

@ -1,6 +1,6 @@
- name: Enable http://box{{ lokole_url }} via Apache # http://box/lokole
command: a2ensite lokole.conf
when: lokole_enabled | bool
when: lokole_enabled
- name: Disable http://box{{ lokole_url }} via Apache # http://box/lokole
command: a2dissite lokole.conf

View file

@ -37,7 +37,7 @@
virtualenv_command: python3 -m venv "{{ lokole_venv }}"
extra_args: --no-cache-dir # To avoid caching issues e.g. soon after new releases hit https://pypi.org/project/opwen-email-client/
when:
- internet_available | bool
- internet_available
- lokole_commit is defined
# For development purposes -- To install a given pip version of Lokole, add
@ -51,7 +51,7 @@
virtualenv_command: python3 -m venv "{{ lokole_venv }}"
extra_args: --no-cache-dir # To avoid caching issues e.g. soon after new releases hit https://pypi.org/project/opwen-email-client/
when:
- internet_available | bool
- internet_available
- lokole_version is defined
- name: "DEFAULT: pip install opwen_email_client (Lokole, latest available version) from PyPI to {{ lokole_venv }}, if above vars both UNdefined"
@ -61,7 +61,7 @@
virtualenv_command: python3 -m venv "{{ lokole_venv }}"
extra_args: --no-cache-dir # To avoid caching issues e.g. soon after new releases hit https://pypi.org/project/opwen-email-client/
when:
- internet_available | bool
- internet_available
- lokole_commit is undefined and lokole_version is undefined
- name: Compile translations
@ -99,7 +99,7 @@
src: lokole.conf.j2
dest: "/etc/{{ apache_conf_dir }}/lokole.conf"
mode: 0644
when: apache_install | bool
when: apache_install
- name: Install unit files {lokole.service, celery.service, celerybeat.service, lokole_restarter.service} into /etc/systemd/system, from template
template:

View file

@ -27,14 +27,14 @@
- name: Do a 'systemctl daemon-reload' if lokole_enabled
systemd:
daemon_reload: yes
when: lokole_enabled | bool
when: lokole_enabled
- name: Enable & Restart {lokole, celery, celerybeat, lokole_restarter} systemd services, if lokole_enabled
systemd:
name: "{{ item }}"
enabled: yes
state: restarted
when: lokole_enabled | bool
when: lokole_enabled
with_items:
- lokole
- celery
@ -60,7 +60,7 @@
- name: Enable/Disable/Restart NGINX if primary
include_tasks: nginx.yml
when: nginx_enabled | bool
when: nginx_enabled
- name: Add 'lokole' variable values to {{ iiab_ini_file }}

View file

@ -2,7 +2,7 @@
template:
src: lokole-nginx.conf.j2
dest: "{{ nginx_conf_dir }}/lokole-nginx.conf" # /etc/nginx/conf.d
when: lokole_enabled | bool
when: lokole_enabled
- name: Disable http://box{{ lokole_url }} via NGINX, by removing {{ nginx_conf_dir }}/lokole-nginx.conf # http://box/lokole
file: