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

github: add syntax and lint checks #733

Merged
merged 5 commits into from
May 9, 2023
Merged

github: add syntax and lint checks #733

merged 5 commits into from
May 9, 2023

Conversation

ktdreyer
Copy link
Member

Run Ansible's --syntax-check and ansible-lint on every PR and Git push.

Ignore some common ansible-lint errors so we can get to green quickly. We can re-evaluate this list later and perhaps fix some of them down the road.

ansible.cfg Outdated Show resolved Hide resolved
akraitman
akraitman previously approved these changes Apr 24, 2023
Run Ansible's syntax checks and ansible-lint on every PR and Git push.

Ignore some common ansible-lint errors so we can get to green quickly.
We can re-evaluate this list later and perhaps fix some of them down the
road.
caught with ansible-lint
ansible-lint cannot load tasks with these longer parent paths.

load-failure: [Errno 2] No such file or directory (filenotfounderror)
Instead of skipping ansible-lint's no-tabs rule globally, apply it on
this single task that uses a tab (\t) character.

Longer-term, we could replace this tab with a space because /etc/hosts
can use either whitespace character. I'm taking a cautious approach
today for simplicity.
@ktdreyer ktdreyer requested a review from bigjust April 25, 2023 18:04
@akraitman akraitman merged commit 3e6766e into main May 9, 2023
@akraitman akraitman deleted the tests branch May 9, 2023 10:32
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.

3 participants