-
Notifications
You must be signed in to change notification settings - Fork 138
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
Ansible lint #3141
base: master
Are you sure you want to change the base?
Ansible lint #3141
Conversation
Run an ansible-lint check on the deployer to catch any ansible syntax errors is the deploy roles and plays before running them. Copy the ansible lint rules from ardana-dev-tools. Jira: SCRD-4907
One of the scripts ported from ardana-dev-tools had incorrect indentation, it has now been fixed.
In order to make the linting role safe to run in parallel with other tasks that may make changes to the git trees we are linting, make a copy of the target ansible path and run the linting against that.
In order to move the linting to its own role, the ardana_deploy role is being split in half so that the new role can be called in the middle.
This allows us to also put the linting into a separate stage.
tasks: | ||
- block: | ||
- include_role: | ||
name: ardana_lint |
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.
Will the lint rules be removed from ardana-dev-tools, it might be better to not have two copies that need to be kept in sync?
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.
That'd be a good thing to do as a follow up to this in the ci-squad. I'm not sure if it'd be better to remove or find a path to keep them in sync so that likely needs some thought.
Add ansible linting to the pipeline workflow.