Skip to content

Commit 26f5b61

Browse files
committed
Update data format in tests and one run for all hosts in MongoDB cluster
in tests.
1 parent d0bacd7 commit 26f5b61

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

tests/group_vars/all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22

3-
image_name: "ubuntu-upstart:18.04"
3+
image_name: "ubuntu:18.04"
44
mongodb_package: mongodb-org
55
mongodb_version: "4.0"
66
mongodb_storage_dbpath: /var/lib/mongodb

tests/host_vars/mongo1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
mongodb_master: true
44
mongodb_replication_params:
5-
- { host_name: "{{ hostvars[inventory_hostname].ansible_default_ipv4.address }}" }
5+
- host_name: "{{ hostvars[inventory_hostname].ansible_default_ipv4.address }}"

tests/host_vars/mongo2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22

33
mongodb_replication_params:
4-
- { host_name: "{{ hostvars[inventory_hostname].ansible_default_ipv4.address }}" }
4+
- host_name: "{{ hostvars[inventory_hostname].ansible_default_ipv4.address }}"

tests/site.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,3 @@
8787
gather_facts: yes
8888
roles:
8989
- role: greendayonfire.mongodb
90-
when: "'mongo_master' in group_names"
91-
92-
- hosts: "{{ target | default('mongo') }}"
93-
become: no
94-
gather_facts: yes
95-
roles:
96-
- role: greendayonfire.mongodb
97-
when: "'mongo_replicas' in group_names"

0 commit comments

Comments
 (0)