Skip to content

63-ansible-lint - [ansible] Add Ansible Lint#64

Merged
sureshjoshi merged 8 commits into
mainfrom
63-ansible-lint
Jun 17, 2022
Merged

63-ansible-lint - [ansible] Add Ansible Lint#64
sureshjoshi merged 8 commits into
mainfrom
63-ansible-lint

Conversation

@sureshjoshi
Copy link
Copy Markdown
Owner

@sureshjoshi sureshjoshi commented Jun 14, 2022

A modified subset of #54

Closes #63

@sureshjoshi
Copy link
Copy Markdown
Owner Author

Still missing some tests

Copy link
Copy Markdown
Contributor

@lilatomic lilatomic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic looks good, I think there are a few minor problems:

  • I think there's a problem with the config files, I don't think they're resolved recursively.
  • the community.docker collection isn't installed, so ansible-lint aborts with that as a single error instead of doing the full lint

Comment thread pants-plugins/experimental/ansible/lint/ansible_lint/subsystem.py
Comment thread pants-plugins/experimental/ansible/lint/ansible_lint/subsystem.py Outdated
@sureshjoshi
Copy link
Copy Markdown
Owner Author

  • the community.docker collection isn't installed, so ansible-lint aborts with that as a single error instead of doing the full lint

Yep, I went with ansible-core, because full ansible is such a huge dep hit. I did it in testing, but I guess didn't push it - but yeah, I need to stick with the builtin collections

@sureshjoshi sureshjoshi merged commit b216fe2 into main Jun 17, 2022
@sureshjoshi sureshjoshi deleted the 63-ansible-lint branch June 17, 2022 18:57
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

Successfully merging this pull request may close these issues.

[ansible] Add Ansible linter

2 participants