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{{ elgg_url }} via Apache # http://box/elgg
command: a2ensite elgg.conf
when: elgg_enabled | bool
when: elgg_enabled
- name: Disable http://box{{ elgg_url }} via Apache # http://box/elgg
command: a2dissite elgg.conf

View file

@ -34,7 +34,7 @@
url: "{{ iiab_download_url }}/elgg-{{ elgg_version }}.zip"
dest: "{{ downloads_dir }}"
timeout: "{{ download_timeout }}"
when: internet_available | bool
when: internet_available
- name: Check for existence of /opt/elgg-{{ elgg_version }}/index.php
stat:

View file

@ -31,7 +31,7 @@
- name: Enable/Disable/Restart NGINX if primary
include_tasks: nginx.yml
when: nginx_enabled | bool
when: nginx_enabled
- name: Add 'elgg' variable values to {{ iiab_ini_file }}

View file

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

View file

@ -28,7 +28,7 @@
name: "{{ dbname }}"
state: import
target: /tmp/elggdb.sql
when: create_elgg_database.changed | bool
when: create_elgg_database.changed
- name: Remove database dump /tmp/elggdb.sql
file: