1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Update main.yml

This commit is contained in:
A Holt 2018-10-31 00:32:10 -04:00 committed by GitHub
parent e2ea1a1969
commit 8cd77a2557
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
- name: Install Couchdb and other necessary packages
- name: Install CouchDB and other necessary packages
package: name={{ item }}
state=present
with_items:
@ -45,13 +45,13 @@
- name: Allow access to Couchdb from other hosts
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
enabled=yes
state=started
when: xovis_enabled
- name: Wait for couchdb to become ready
- name: Wait for CouchDB to become ready
wait_for: port=5984
delay=1
timeout=5
@ -66,7 +66,7 @@
register: found_db
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 }}
when: xovis_enabled and found_db.stdout != xovis_db_name
@ -81,7 +81,7 @@
--server http://{{ xovis_db_login }}@{{ xovis_target_host }}"
when: xovis_enabled
- name: Add xovis to service list
- name: Add 'xovis' variable values to {{ iiab_ini_file }}
ini_file: dest='{{ iiab_ini_file }}'
section=xovis
option='{{ item.option }}'