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

Include practice to use loop and loop_var #54

Open
bontreger opened this issue Mar 18, 2022 · 3 comments
Open

Include practice to use loop and loop_var #54

bontreger opened this issue Mar 18, 2022 · 3 comments

Comments

@bontreger
Copy link
Contributor

As per this ansible lint role, a recommendation to use loop and loop_var - https://ansible-lint.readthedocs.io/en/latest/default_rules/#no-loop-var-prefix

@ericzolf
Copy link
Contributor

Good point. I don't think we need a specific rule though, it should just be highlighted as a special case of the generic rule to prefix vars with the role's name.

@ericzolf
Copy link
Contributor

Do you create a PR for this?

@bontreger
Copy link
Contributor Author

Not yet, I was brain-dumping as I was going through the ansible lint rules on a client's playbooks and this was a finding in lint that we haven't addressed

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

No branches or pull requests

2 participants