[stable-2.9] disable mongodb_* tests, fix setup_mongodb (#71388)

* Disable mongodb_replicaset tests for now

Change:
- 4.0.20 breaks tests, disable for now

Test Plan:
- CI

Tickets:
- https://github.com/ansible-collections/community.mongodb/issues/136

Signed-off-by: Rick Elrod <rick@elrod.me>

* setup_mongodb: Nix RH package installation/removal

Change:
- Our RHEL and CentOS images make these unnecessary and they were
  broken.

Test Plan:
- CI

Signed-off-by: Rick Elrod <rick@elrod.me>

* Disable mongodb_shard tests for now

Change:
- 4.0.20 breaks tests, disable for now

Test Plan:
- CI

Tickets:
- https://github.com/ansible-collections/community.mongodb/issues/136

Signed-off-by: Rick Elrod <rick@elrod.me>
pull/71430/head
Rick Elrod 5 years ago committed by GitHub
parent ca0f9b9e0f
commit 7779137b71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,3 +4,4 @@ skip/osx
skip/freebsd
skip/rhel
needs/root
disabled # broken with newer mongodb (4.0.20)

@ -4,3 +4,4 @@ skip/osx
skip/freebsd
skip/rhel
needs/root
disabled # broken with newer mongodb (4.0.20)

@ -34,16 +34,6 @@ debian_packages_py36:
- python3-setuptools
- python3-pip
redhat_packages_py2:
- python-devel
- python-setuptools
- python-pip
redhat_packages_py3:
- python3-devel
- python3-setuptools
- python3-pip
pip_packages:
- psutil==5.6.7
- pymongo==3.10.1

@ -8,16 +8,6 @@
name: "{{ debian_packages_py36 }}"
state: absent
- name: Remove redhat_packages_py2
yum:
name: "{{ redhat_packages_py36 }}"
state: absent
- name: Remove redhat_packages_py36
yum:
name: "{{ redhat_packages_py36 }}"
state: absent
- name: remove mongodb pip packages
pip:
name: "{{ pip_packages }}"

@ -163,23 +163,6 @@
- ansible_distribution_version == "18.04"
notify: Remove debian_packages_py36
- name: Install redhat_packages_py2
yum:
name: "{{ redhat_packages_py2 }}"
when:
- ansible_os_family == "RedHat"
- ansible_distribution_version|float < 8
- not (ansible_os_family == "RedHat" and ansible_distribution_version|float < 8)
notify: Remove redhat_packages_py2
- name: Install redhat_packages_py3
yum:
name: "{{ redhat_packages_py3 }}"
when:
- ansible_os_family == "RedHat"
- ansible_distribution_version|float >= 8
notify: Remove redhat_packages_py3
- name: Install pip packages
pip:
name: "{{ pip_packages }}"

Loading…
Cancel
Save