Merge "Fix warning during Mongodb bootstrap task"
This commit is contained in:
commit
cf00aa6997
@ -3,10 +3,10 @@
|
|||||||
local_action: template src=bootstrap_cluster.js.j2 dest=/tmp/mongodb_bootstrap_replication_set.js
|
local_action: template src=bootstrap_cluster.js.j2 dest=/tmp/mongodb_bootstrap_replication_set.js
|
||||||
run_once: True
|
run_once: True
|
||||||
|
|
||||||
- name: Bootstraping the mongodb replication set
|
- name: Bootstrapping the mongodb replication set
|
||||||
command: "docker exec -t mongodb mongo {{ api_interface_address }} --quiet --eval '{{ lookup('file','/tmp/mongodb_bootstrap_replication_set.js') }}'"
|
command: "docker exec -t mongodb mongo {{ api_interface_address }} --quiet --eval '{{ lookup('file','/tmp/mongodb_bootstrap_replication_set.js') }}'"
|
||||||
register: bootstrap_mongodb_cluster
|
register: bootstrap_mongodb_cluster
|
||||||
failed_when: "{{ (bootstrap_mongodb_cluster.stdout|from_json).ok != 1 }}"
|
failed_when: (bootstrap_mongodb_cluster.stdout|from_json).ok != 1
|
||||||
delegate_to: "{{ groups['mongodb'][0] }}"
|
delegate_to: "{{ groups['mongodb'][0] }}"
|
||||||
run_once: True
|
run_once: True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user