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 fails to find my roles #4271

Open
7 tasks done
gpettey opened this issue Aug 9, 2024 · 0 comments
Open
7 tasks done

molecule fails to find my roles #4271

gpettey opened this issue Aug 9, 2024 · 0 comments
Labels

Comments

@gpettey
Copy link

gpettey commented Aug 9, 2024

Prerequisites

  • This was not already reported in the past (duplicate check)
  • It does reproduce it with code from main branch (latest unreleased version)
  • I include a minimal example for reproducing the bug
  • The bug is not trivial, as for those a direct pull-request is preferred
  • Running pip check does not report any conflicts
  • I was able to reproduce the issue on a different machine
  • The issue is not specific to any driver other than 'default' one

Environment

WSL (Ubuntu 22.04), molecule-plugins[podman]

Mostly following examples from https://ansible.readthedocs.io/projects/molecule/getting-started/

As documented, molecule simply does not work.

What happened

After creating an "extensions" folder, running molecule init scenario inside that folder, editing converge.yml to add an include_role task with one of the roles in the collection, I get

fatal: [instance]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname instance: Name or service not known", "unreachable": true}

Running molecule the "old way" in the individual role's folder still works fine, but I am limited to testing only the specific role that way rather than testing integration between multiple roles.

Reproducing example

No response

@gpettey gpettey added the new label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant