Skip to content
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

Molecule Testing Failing #486

Open
steveyminecraft opened this issue Dec 25, 2024 · 1 comment
Open

Molecule Testing Failing #486

steveyminecraft opened this issue Dec 25, 2024 · 1 comment

Comments

@steveyminecraft
Copy link

steveyminecraft commented Dec 25, 2024

Hi there I am attempting to run the molecule tests for the ansible role however I run into the following error

TASK [Gathering Facts] *********************************************************
fatal: [instance]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.setup": {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "failed": true, "module_stderr": "sudo: PAM account management error: Authentication service cannot retrieve authentication info\nsudo: a password is required\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}}, "msg": "The following modules failed to execute: ansible.legacy.setup\n"}

I have used an ASDF env and with both 3.9.0 and 3.12.0 the command that was used was the following running on ubuntu 24.04

molecule test

Any more information is required please let me know and I shall post it

@steveyminecraft
Copy link
Author

After I little more testing this due to the default image of rockylinux9 using python 3.9, I changed the molecule test to use ubuntu24.04 and this passed without issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant