mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-02-04 09:13:47 +00:00
Update data format in tests and one run for all hosts in MongoDB cluster
in tests.
This commit is contained in:
parent
d0bacd7cd2
commit
26f5b616d8
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
image_name: "ubuntu-upstart:18.04"
|
image_name: "ubuntu:18.04"
|
||||||
mongodb_package: mongodb-org
|
mongodb_package: mongodb-org
|
||||||
mongodb_version: "4.0"
|
mongodb_version: "4.0"
|
||||||
mongodb_storage_dbpath: /var/lib/mongodb
|
mongodb_storage_dbpath: /var/lib/mongodb
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
mongodb_master: true
|
mongodb_master: true
|
||||||
mongodb_replication_params:
|
mongodb_replication_params:
|
||||||
- { host_name: "{{ hostvars[inventory_hostname].ansible_default_ipv4.address }}" }
|
- host_name: "{{ hostvars[inventory_hostname].ansible_default_ipv4.address }}"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
mongodb_replication_params:
|
mongodb_replication_params:
|
||||||
- { host_name: "{{ hostvars[inventory_hostname].ansible_default_ipv4.address }}" }
|
- host_name: "{{ hostvars[inventory_hostname].ansible_default_ipv4.address }}"
|
||||||
|
@ -87,11 +87,3 @@
|
|||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
roles:
|
roles:
|
||||||
- role: greendayonfire.mongodb
|
- role: greendayonfire.mongodb
|
||||||
when: "'mongo_master' in group_names"
|
|
||||||
|
|
||||||
- hosts: "{{ target | default('mongo') }}"
|
|
||||||
become: no
|
|
||||||
gather_facts: yes
|
|
||||||
roles:
|
|
||||||
- role: greendayonfire.mongodb
|
|
||||||
when: "'mongo_replicas' in group_names"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user