trfore / ansible-role-mongodb-install

Ansible role for installing MongoDB Community Edition on RedHat/CentOS and Debian/Ubuntu
https://galaxy.ansible.com/ui/standalone/roles/trfore/mongodb_install/
MIT License
2 stars 0 forks source link

Molecule test fail to version lock in CentOS 8 when using community.general.yum_versionlock >= 7.2.0 #13

Closed trfore closed 1 year ago

trfore commented 1 year ago

Describe the bug

Molecule test fail to version lock MongoDB in CentOS 8, this is related to community.general.yum_versionlock >= 7.2.0 as pinning the collection to 7.1.0 resolves the issue.

ansible-galaxy collection install community.general:7.1.0

Note: This issue does not occur when locking MongoDB to version 5.0.20.

MOLECULE_MONGODB_VERSION="5.0.20" MOLECULE_IMAGE="trfore/docker-centos8-systemd"  molecule test -s default

To Reproduce

Steps to reproduce the behavior:

  1. Deploy the role / collection using the following playbook:
MOLECULE_MONGODB_VERSION="4.4.23" MOLECULE_IMAGE="trfore/docker-centos8-systemd"  molecule test -s default

OR

MOLECULE_MONGODB_VERSION="6.0.9" MOLECULE_IMAGE="trfore/docker-centos8-systemd"  molecule test -s default
  1. See error
TASK [ansible-role-mongodb-install : Hold MongoDB packages] ********************
fatal: [instance]: FAILED! => {"changed": false, "msg": "Adding versionlock on: mongodb-org-0:*..."}

Expected behavior

Task OK and packages locked

Your environment

trfore commented 1 year ago

Relevant GH runner logs:

trfore commented 1 year ago

Recent commit to community.general.yum_versionlock in community.general version 7.2.0: