mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Update main.yml
This commit is contained in:
parent
e2ea1a1969
commit
8cd77a2557
1 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
- name: Install Couchdb and other necessary packages
|
- name: Install CouchDB and other necessary packages
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
state=present
|
state=present
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -45,13 +45,13 @@
|
||||||
- name: Allow access to Couchdb from other hosts
|
- name: Allow access to Couchdb from other hosts
|
||||||
command: sed -i 's/^\(bind_address\s*=\s*\).*$/\10\.0\.0\.0/' /etc/couchdb/default.ini
|
command: sed -i 's/^\(bind_address\s*=\s*\).*$/\10\.0\.0\.0/' /etc/couchdb/default.ini
|
||||||
|
|
||||||
- name: Enable Couchdb service
|
- name: Enable CouchDB service
|
||||||
service: name=couchdb
|
service: name=couchdb
|
||||||
enabled=yes
|
enabled=yes
|
||||||
state=started
|
state=started
|
||||||
when: xovis_enabled
|
when: xovis_enabled
|
||||||
|
|
||||||
- name: Wait for couchdb to become ready
|
- name: Wait for CouchDB to become ready
|
||||||
wait_for: port=5984
|
wait_for: port=5984
|
||||||
delay=1
|
delay=1
|
||||||
timeout=5
|
timeout=5
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
register: found_db
|
register: found_db
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: Create Couchdb database if does not already exist
|
- name: Create CouchDB database if does not already exist
|
||||||
command: kanso createdb {{ xovis_db_url }}
|
command: kanso createdb {{ xovis_db_url }}
|
||||||
when: xovis_enabled and found_db.stdout != xovis_db_name
|
when: xovis_enabled and found_db.stdout != xovis_db_name
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
--server http://{{ xovis_db_login }}@{{ xovis_target_host }}"
|
--server http://{{ xovis_db_login }}@{{ xovis_target_host }}"
|
||||||
when: xovis_enabled
|
when: xovis_enabled
|
||||||
|
|
||||||
- name: Add xovis to service list
|
- name: Add 'xovis' variable values to {{ iiab_ini_file }}
|
||||||
ini_file: dest='{{ iiab_ini_file }}'
|
ini_file: dest='{{ iiab_ini_file }}'
|
||||||
section=xovis
|
section=xovis
|
||||||
option='{{ item.option }}'
|
option='{{ item.option }}'
|
||||||
|
|
Loading…
Reference in a new issue