ansible-role-docker icon indicating copy to clipboard operation
ansible-role-docker copied to clipboard

Molecule Testing Failing

Open steveyminecraft opened this issue 10 months ago • 2 comments

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 avatar Dec 25 '24 18:12 steveyminecraft