Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Ansible lint #3141

wants to merge 6 commits into from

Conversation

jhesketh
Copy link
Contributor

Add ansible linting to the pipeline workflow.

K Jonathan Harker and others added 6 commits January 31, 2019 13:20
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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants