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
|
|
@ -7,7 +7,7 @@
|
|||
- python-pip
|
||||
- nodejs
|
||||
- npm
|
||||
when: internet_available | bool
|
||||
when: internet_available
|
||||
|
||||
- name: Determine if xovis is already downloaded
|
||||
stat: path={{ downloadds_dir }}/xovis/xxx
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
npm: name=kanso
|
||||
global=yes
|
||||
path={{ downloads_dir }}
|
||||
when: internet_available | bool
|
||||
when: internet_available
|
||||
|
||||
- name: move the xovis repo into place
|
||||
shell: "cp -rp {{ downloads_dir }}/xovis {{ xovis_root }}"
|
||||
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
- name: Install the xovis python dependencies
|
||||
pip: requirements={{ xovis_root }}/process_stats/requirements.txt
|
||||
when: internet_available | bool
|
||||
when: internet_available
|
||||
|
||||
- name: Update xovis repo with Chart Heading
|
||||
lineinfile: dest="{{ xovis_root }}/index.html" regexp='(.+)<h1>(.*)</h1>' line='\1<h1>{{ xovis_chart_heading }}</h1>' backrefs=yes
|
||||
|
|
@ -49,17 +49,17 @@
|
|||
service: name=couchdb
|
||||
enabled=yes
|
||||
state=started
|
||||
when: xovis_enabled | bool
|
||||
when: xovis_enabled
|
||||
|
||||
- name: Wait for CouchDB to become ready
|
||||
wait_for: port=5984
|
||||
delay=1
|
||||
timeout=5
|
||||
when: xovis_enabled | bool
|
||||
when: xovis_enabled
|
||||
|
||||
- name: Add admin user
|
||||
command: curl -X PUT {{ xovis_target_host }}/_config/admins/{{ xovis_db_user }} -d "\"{{ xovis_db_password }}\""
|
||||
when: xovis_enabled | bool
|
||||
when: xovis_enabled
|
||||
|
||||
- name: Check if db exists
|
||||
shell: "kanso listdb | grep {{ xovis_db_name }}"
|
||||
|
|
@ -79,7 +79,7 @@
|
|||
-d {{ xovis_backup_dir }}
|
||||
--deployment {{ xovis_deployment_name }}
|
||||
--server http://{{ xovis_db_login }}@{{ xovis_target_host }}"
|
||||
when: xovis_enabled | bool
|
||||
when: xovis_enabled
|
||||
|
||||
- name: Add 'xovis' variable values to {{ iiab_ini_file }}
|
||||
ini_file:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue