-
Notifications
You must be signed in to change notification settings - Fork 195
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
Random Bug fixes #103
Random Bug fixes #103
Conversation
@willtome I have removed the Ansible-lint gh action and replaced it by pre-commit action. Using pre-commit as a single point of entry for the linting will ensure consistency for developments (locally and in the CI). I have referenced the variable naming issue in #120, it will be treated as a separate PR. Waiting for your review ;) |
Note: the YAML linter complains when comments aren't indented at the same level as the YAML item, which causes some of the lint issues. this should be configurable in the .yamllint config file, see about disabling this particular feature. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with one overall comment. the roles that are under collections/ansible_collections/demo/compliance/
are copies of DISA-provided roles available from the DISA website. any time they get updated it may introduce more things that ansible-lint doesn't like, so we really shouldn't be linting them. that directory is supposed to be excluded in the ansible-lint config file, so i'm not sure why it would have complained.
since they're not content created for product-demos, we should probably move all of the roles out of collections/
and into roles/
as well, and update .ansible-lint
appropriately.
that is, disable comments-indentation |
TODO:
thank you for the reviews and the comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am good with this
the ansible-lint action was complaining about a couple of files where a block of YAML items was commented out, such as this: product-demos/collections/ansible_collections/demo/patching/plugins/modules/win_scan_packages.py Line 14 in d5093fa
this seems to be more of an issue with YAML embedded in python code rather than ansible tasks. by setting |
No description provided.