-
Notifications
You must be signed in to change notification settings - Fork 194
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
added pre-commit configuration for ansible-lint #93
Conversation
also, the github action ansible/[email protected] has not been changed, although it will be reading the new changes to |
4f03581
to
b6f5daa
Compare
So this is looking awesome to me. I had some trouble around requirements and collections being found, pre-commit seemed to want them in |
if any collections referenced aren't installed in the collections path, ansible-lint will try to install whatever is in collections/requirements.yml into the ansible-lint cache itself. since this can take some time, i disabled that in the .ansible-lint config file by setting note that setting |
just tested with
the third time it succeeded without any changes. this might be why i switched to so, the tradeoffs for using offline mode or not:
i'm leaning towards |
- updated .ansible-lint - added .yamllint - added missing collection used by linux/temp_sudo.yml no lint errors were fixed in this commit, only the scaffolding for using pre-commit was put in place.
- ansible-lint-action action is deprecated, switching to ansible-lint action at https://github.com/marketplace/actions/run-ansible-lint - pinned ansible-lint version to match the same one in .pre-commit-config.yaml
- named build action - removed unneeded call to actions/checkout@v3 - updated ansible.cfg galaxy server configuration per current documentation
2e76970
to
fadc8d0
Compare
no lint errors were fixed in this commit, only the scaffolding for using pre-commit was put in place.