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

Variable quoting required to meet stricter syntax in ansible 2.0 #121

Open
UTAS-Nick-Howden opened this issue Nov 21, 2016 · 2 comments
Open

Comments

@UTAS-Nick-Howden
Copy link

In file tasks/section_08_level2.yml

with_items: audit_lines_for_find.stdout_lines
should be
with_items: "{{ audit_lines_for_find.stdout_lines }}"

Without the extra quoting the generated file contains the line
audit_lines_for_find.stdout_lines
which is not the intended behaviour

Believe this is because of stricter syntax in Ansible 2.0

@awailly
Copy link
Owner

awailly commented Nov 22, 2016

Yes, nice catch. Do you mind creating the pull request to be sure that you have the correct fix?

@eastokes
Copy link
Contributor

I've noticed several other variables and commands that should be quoted to follow best practices. I'll likely take on this work.

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

3 participants