Merge "Fix mongo command for checking replication status"
This commit is contained in:
commit
9c342241f7
@ -31,7 +31,7 @@
|
||||
|
||||
- name: Checking current replication status
|
||||
become: true
|
||||
command: "docker exec -t mongodb mongo {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }} --quiet --eval rs.status().ok"
|
||||
command: "docker exec -t mongodb mongo --host {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }} --port {{ mongodb_port }} --quiet --eval rs.status().ok"
|
||||
register: mongodb_replication_status
|
||||
changed_when: false
|
||||
delegate_to: "{{ groups['mongodb'][0] }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user