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

Missing quotation marks when setting facts, causing json parsing to fail #1

Open
ji-podhead opened this issue Aug 14, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ji-podhead
Copy link
Contributor

>-
  {% for key, value in item["vars"].items() %}
  {{ key }}: "{{ value }}"
  {% endfor %}
@ji-podhead ji-podhead added the bug Something isn't working label Aug 14, 2024
@ji-podhead ji-podhead self-assigned this Aug 14, 2024
@ji-podhead
Copy link
Contributor Author

du musst auch \n mit \n ersetzen, weil du sonst jedes mal beim json parsen das ersetzen musst:
raw_params: "{{ hostvars[item].get('_raw_params') | replace('\n', '\\n') | to_nice_json(indent=8) }}"

@ji-podhead
Copy link
Contributor Author

>-
  {% for key, value in item["vars"].items() %}
  {{ key }}: "{{ value }}"
  {% endfor %}

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant