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:
parent
2968a8a20e
commit
ca171fbc1c
158 changed files with 2072 additions and 2072 deletions
|
|
@ -35,7 +35,7 @@
|
|||
version: "{{ sugarizer_git_version }}"
|
||||
force: yes
|
||||
depth: 1
|
||||
when: internet_available | bool
|
||||
when: internet_available
|
||||
|
||||
- name: Symlink /opt/iiab/sugarizer -> /opt/iiab/{{ sugarizer_dir_version }}
|
||||
file:
|
||||
|
|
@ -68,7 +68,7 @@
|
|||
version: "{{ sugarizer_server_git_version }}"
|
||||
force: yes
|
||||
depth: 1
|
||||
when: internet_available | bool
|
||||
when: internet_available
|
||||
|
||||
- name: Symlink /opt/iiab/sugarizer-server -> /opt/iiab/{{ sugarizer_server_dir_version }}
|
||||
file:
|
||||
|
|
@ -132,7 +132,7 @@
|
|||
args:
|
||||
chdir: "{{ iiab_base }}/sugarizer-server"
|
||||
#creates: "{{ iiab_base }}/sugarizer-server/node_modules" # OLD WAY 2
|
||||
when: internet_available | bool # "npm install" generally requires Internet access
|
||||
when: internet_available # "npm install" generally requires Internet access
|
||||
# when: internet_available and git_sug_server_output.changed # OLD WAY 3
|
||||
# when: internet_available and not is_F18 and not node_modules_exists # OLD WAY 1
|
||||
|
||||
|
|
@ -143,7 +143,7 @@
|
|||
command: npm install --allow-root --unsafe-perm=true path-prefix-proxy
|
||||
args:
|
||||
chdir: "{{ iiab_base }}/sugarizer-server"
|
||||
when: internet_available | bool
|
||||
when: internet_available
|
||||
|
||||
|
||||
# 5. CONFIG FILES
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
- name: "Set 'mongodb_enabled: True' when sugarizer_enabled"
|
||||
set_fact:
|
||||
mongodb_enabled: True
|
||||
when: sugarizer_enabled | bool
|
||||
when: sugarizer_enabled
|
||||
|
||||
- name: MONGODB - run 'mongodb' role (attempt to install MongoDB)
|
||||
include_role:
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
include_tasks: install.yml
|
||||
when: sugarizer_installed is undefined
|
||||
|
||||
- block: # 2 STANZAS BELOW, CONDITIONED ON 'when: sugarizer_enabled | bool'
|
||||
- block: # 2 STANZAS BELOW, CONDITIONED ON 'when: sugarizer_enabled'
|
||||
|
||||
# LIKELY UNNEC: THIS SAME CODE IS IN main.yml (LINES 32-35, ALREADY RUN)
|
||||
# sugarizer.service line 'Requires=mongodb.service' auto-starts MongoDB (but record that in var too)
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
enabled: yes
|
||||
state: restarted
|
||||
|
||||
when: sugarizer_enabled | bool # CONDITION FOR 2-STANZA block: ABOVE
|
||||
when: sugarizer_enabled # CONDITION FOR 2-STANZA block: ABOVE
|
||||
|
||||
# Stops 'sugarizer' but not 'mongodb'
|
||||
- name: Disable & Stop 'sugarizer' systemd service, if not sugarizer_enabled
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
- name: Enable/Disable/Restart NGINX if primary
|
||||
include_tasks: nginx.yml
|
||||
when: nginx_enabled | bool
|
||||
when: nginx_enabled
|
||||
|
||||
|
||||
- name: Add 'sugarizer' variable values to {{ iiab_ini_file }}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
template:
|
||||
src: sugarizer-nginx.conf
|
||||
dest: "{{ nginx_conf_dir }}/sugarizer-nginx.conf" # /etc/nginx/conf.d
|
||||
when: sugarizer_enabled | bool
|
||||
when: sugarizer_enabled
|
||||
|
||||
- name: Disable http://box/sugarizer via NGINX, by removing {{ nginx_conf_dir }}/sugarizer-nginx.conf
|
||||
file:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue