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

View file

@ -17,7 +17,7 @@
dest: "{{ downloads_dir }}"
timeout: "{{ download_timeout }}"
register: wp_download_output
when: internet_available | bool
when: internet_available
- name: Symlink {{ downloads_dir }}/wordpress.tar.gz -> {{ wp_download_output.dest }}
file:
@ -69,7 +69,7 @@
- name: Run /tmp/get-iiab-wp-salts to download 8 random salts/keys, creating a new {{ wp_abs_path }}/wp-keys.php (or if nec, copy from known/prior {{ wp_abs_path }}/wp-keys.php.BAK) # /library/wordpress
command: /tmp/get-iiab-wp-salts
#when: internet_available | bool # Better to run it every time, installing from wp-keys.php.BAK if download fails
#when: internet_available # Better to run it every time, installing from wp-keys.php.BAK if download fails
# Don't Bother: /tmp file are deleted on reboot!
#- name: Remove script /tmp/get-iiab-wp-salts

View file

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

View file

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