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

Empty mocked role dir makes ansible role messed up #2234

Closed
zhan9san opened this issue Jul 12, 2022 · 0 comments · Fixed by #2235
Closed

Empty mocked role dir makes ansible role messed up #2234

zhan9san opened this issue Jul 12, 2022 · 0 comments · Fixed by #2235
Labels
bug new Triage required

Comments

@zhan9san
Copy link
Contributor

Summary
Issue Type
  • Bug Report
Ansible and Ansible Lint details
$ ansible --version
ansible [core 2.13.1]
  config file = None
  configured module search path = ['/Users/jackzhang/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/jackzhang/.pyenv/versions/3.9.7/envs/v-397-test/lib/python3.9/site-packages/ansible
  ansible collection location = /Users/jackzhang/.ansible/collections:/usr/share/ansible/collections
  executable location = /Users/jackzhang/.pyenv/versions/v-397-test/bin/ansible
  python version = 3.9.7 (default, Oct 28 2021, 19:01:53) [Clang 12.0.5 (clang-1205.0.22.11)]
  jinja version = 3.1.2
  libyaml = True
$ ansible-lint --version
ansible-lint 6.3.0 using ansible 2.13.1
  • ansible installation method: pip
  • ansible-lint installation method: pip
OS / ENVIRONMENT

Linux

STEPS TO REPRODUCE
git clone https://github.com/zhan9san/ansible-role-test-lint.git
cd ansible-role-test-lint
pip install molecule[docker] ansible-lint
molecule test
Desired Behavior

The role(zhan9san.test) defined in molecule/default/converge.yml can be executed.

Actual Behavior

The role(zhan9san.test) is skipped as below.

TASK [Include zhan9san.test] ***************************************************

TASK [Include zhan9san.ansible_role_test_lint] *********************************

PLAY RECAP *********************************************************************
instance                   : ok=1    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug new Triage required
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant