You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm becoming crazy. I tried all possible directory structures I could imagine. I always get the failure:
(.venv) yajo@yajolap ~/p/my-collection (doodba_update)> pre-commit run -a ansible-lint
[INFO] Installing environment for https://github.com/ansible/ansible-lint.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
Ansible-lint.............................................................Failed
- hook id: ansible-lint
- exit code: 2
WARNING Listing 1 violation(s) that are fatal
internal-error: the role 'moduon.my_collection.doodba_update' was not found in /var/home/yajo/prodevel/my-collection/moduon/my_collection/playbooks/roles:/var/home/yajo/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/var/home/yajo/prodevel/my-collection/moduon/my_collection/playbooks
moduon/my_collection/playbooks/doodba_update.yml:32:7 [WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
ERROR! the role 'moduon.my_collection.doodba_update' was not found in /var/home/yajo/prodevel/my-collection/moduon/my_collection/playbooks/roles:/var/home/yajo/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/var/home/yajo/prodevel/my-collection/moduon/my_collection/playbooks
The error appears to be in '/var/home/yajo/prodevel/my-collection/moduon/my_collection/playbooks/doodba_update.yml': line 32, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
roles:
- role: moduon.my_collection.doodba_update
^ here
You can skip specific rules or tags by adding them to your configuration file:
# .ansible-lint
warn_list: # or 'skip_list' to silence them completely
- internal-error # Unexpected internal error
Finished with 1 failure(s), 0 warning(s) on 19 files.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm becoming crazy. I tried all possible directory structures I could imagine. I always get the failure:
How am I supposed to configure ansible-lint to make it lint a collection? I'm following https://docs.ansible.com/ansible/latest/dev_guide/developing_collections.html#developing-collections
Beta Was this translation helpful? Give feedback.
All reactions