Skip to content
Snippets Groups Projects
Commit 49c2f489 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Fix mongo command for supporting other port"

parents 0bd46800 f7bfce20
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
- name: Bootstrapping the mongodb replication set
become: true
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 --host {{ api_interface_address }} --port {{ mongodb_port }} --quiet --eval '{{ lookup('file','/tmp/mongodb_bootstrap_replication_set.js') }}'"
register: bootstrap_mongodb_cluster
failed_when: (bootstrap_mongodb_cluster.stdout|from_json).ok != 1
delegate_to: "{{ groups['mongodb'][0] }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment