-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When including more than 1 entry in platforms molecule_inventory.yml doesn't contain all entries #4058
Closed
7 tasks done
Labels
Comments
Sorry, should have included this:
|
I just ran into the same thing - |
ssbarnea
pushed a commit
that referenced
this issue
Oct 17, 2023
Previous behavior is your molecule group would only contain the last platform since the elements were not merging: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/combine_filter.html ``` TASK [Display uname info] ****************************************************** ok: [foo] => { "msg": "Linux...\n" } ``` New behavior is all of your platforms will be in the host inventory ``` TASK [Display uname info] ****************************************************** ok: [foo] => { "msg": "Linux...\n" } ok: [bar] => { "msg": "Linux...\n" } ``` Fixes: #4058
github-project-automation
bot
moved this from Roadmap
to Done
in 🧰 devtools project board
Oct 17, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
pip check
does not report any conflictsEnvironment
$ molecule --version
molecule 6.0.2 using python 3.9
ansible:2.15.4
default:6.0.2 from molecule
$ rpm -q python3
python3-3.9.16-1.el9_2.1.x86_64
$ rpm -q ansible-core
ansible-core-2.15.4-1.el9ap.noarch
$ rpm -q molecule
molecule-6.0.2-1.el9ap.noarch
$ cat /etc/redhat-release
Red Hat Enterprise Linux release 9.2 (Plow)
What happened
I followed the Red Hat blog [0] example and then followed the docs [1] to enable podman containers. Everything appeared to work, however when I ran
molecule test
not all platform entries are destroyed.[0] https://developers.redhat.com/articles/2023/09/13/introducing-ansible-molecule-ansible-automation-platform
[1] https://ansible.readthedocs.io/projects/molecule/podman/
Reproducing example
The text was updated successfully, but these errors were encountered: