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/moodle via Apache
command: a2ensite 022-moodle.conf
when: moodle_enabled | bool
when: moodle_enabled
- name: Disable http://box/moodle via Apache
command: a2dissite 022-moodle.conf

View file

@ -36,7 +36,7 @@
- php{{ php_version }}-mbstring # 2020-06-15: Now required by Moodle 3.9+
- php{{ php_version }}-cli # 2020-06-15: In the past this included (above) mbstring? However this is not true on Ubuntu Server 20.04 LTS.
state: present
when: is_debuntu | bool
when: is_debuntu
# - name: "Install package: php{{ php_version }}-zip (Ubuntu or Debian 9+)"
# package:
@ -46,7 +46,7 @@
# - name: "Install package: php-pclzip (debian-8)"
# package:
# name: php-pclzip
# when: is_debian_8 | bool
# when: is_debian_8
- name: Does {{ moodle_base }}/config-dist.php exist? (indicating Moodle is/was installed)
stat:
@ -135,7 +135,7 @@
name: postgresql-iiab
state: restarted
#enabled: yes
#when: moodle_enabled | bool
#when: moodle_enabled
- name: (Re)Start '{{ apache_service }}' systemd service
systemd:

View file

@ -30,7 +30,7 @@
# deamon_reload: yes
# state: started
# enabled: yes
# when: moodle_enabled | bool
# when: moodle_enabled
#
# # if the only service using the backend db disable if not running
# - name: Disable 'postgresql-iiab' systemd service, if 'not moodle_enabled and not (pathagar_enabled is defined and pathagar_enabled)'
@ -44,7 +44,7 @@
set_fact:
postgresql_install: True
postgresql_enabled: True
when: moodle_enabled | bool
when: moodle_enabled
- name: "Set 'postgresql_enabled: False' if 'not moodle_enabled and not (pathagar_enabled is defined and pathagar_enabled)'"
set_fact:
@ -63,7 +63,7 @@
- name: Enable/Disable/Restart NGINX if primary
include_tasks: nginx.yml
when: nginx_enabled | bool
when: nginx_enabled
- name: Add 'moodle' variable values to {{ iiab_ini_file }}

View file

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