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

Fix molecule test failing due to Ansible not being installed #393

Closed
geerlingguy opened this issue Mar 19, 2021 · 1 comment
Closed

Fix molecule test failing due to Ansible not being installed #393

geerlingguy opened this issue Mar 19, 2021 · 1 comment

Comments

@geerlingguy
Copy link
Owner

When I run ansible-lint via Molecule in the molecule example in CI, it fails because Ansible is not installed. The latest versions of ansible-lint no longer strictly depend on Ansible, so it is not installed by default. Need to explicitly install it.

Molecule default > lint
  COMMAND: set -e
  yamllint .
  ansible-lint
  
  Unable to find a working copy of ansible executable. CompletedProcess(args=['ansible', '--version'], returncode=1, stdout='', stderr='Traceback (most recent call last):\n  File "/usr/bin/ansible", line 34, in <module>\n    from ansible import context\nModuleNotFoundError: No module named \'ansible\'\n')
  CRITICAL Lint failed with error code 4
WARNING  An error occurred during the test sequence action: 'lint'. Cleaning up.
@geerlingguy
Copy link
Owner Author

That was fixed; the other error is due to a firewalld redirection bug in the current version of Ansible. Should be fixed in the next release.

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