-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add Ansible yamllint #192
Add Ansible yamllint #192
Conversation
ef5b905
to
db3f66a
Compare
db3f66a
to
3611e3d
Compare
3611e3d
to
3641f10
Compare
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
Makefile
Outdated
|
||
static-ansible-syntax: | ||
@find ansible/playbooks -type f -iname "*.yaml" -maxdepth 1 -exec ansible-playbook -l all -vvvv -i terraform/azure/inventory.yaml --syntax-check {} + | ||
@find ansible/playbooks/ -type f -iname "*.yaml" -and ! -name "registration_role.yaml" -maxdepth 1 -exec ansible-playbook -l all -vvvv -i terraform/azure/inventory.yaml --syntax-check {} + |
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.
The other check (the one in static-ansible-yaml
) calls a script with only one find
(and some variables). Wouldn't it make sense to also turn this check into a script in tools/
?
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 decided to focus this PR on yamllint and leave all the work about ansible-playbook ``syntax-check
for a next PR. Yes I agree it make sense to move this one too to a dedicated script.
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. Just a question.
Fix Makefile about all the Ansible targets, they now catch all relevant files. Fix all the warning reported by yamllint. Add a github action to lint the Ansible code with yamllint.
3641f10
to
af53d94
Compare
Fix Makefile about all the Ansible targets, they now catch all relevant files.
Fix all the warning reported by yamllint.
Add a github action to lint the Ansible code with yamllint.
Ticket : TEAM-7184
Verification: is the pipeline execution in this PR