This repository has been archived by the owner on Mar 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 271
upstream bug in to_nice_yaml affects template generation task: "value must be a string" #158
Labels
bug
Something isn't working
Comments
Indeed seems like an upstream bug and only for a subset of ansible installations (that's why it wasn't caught during role tests). Removing |
This was referenced Jun 16, 2020
rounds does not seem to be found as an argument, I suggest it should be removed |
Observed similar behavior with ansible 2.9.9 ( ubuntu 20.04 latest ansible package ) |
according to upstream this is solved in ansible-core 2.12 |
This role has been deprecated in favor of a the prometheus-community/ansible collection. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What happened?
Task "Copy the node_exporter config file" fails with the following error:
Removing
| to_nice_yaml | indent(2, true)
from the config.yaml.j2 template
avoids the error. Resulting config:
I suspect this is related to:
ansible/ansible#66916
Did you expect to see some different?
config.yaml is generated without errors.
How to reproduce it (as minimally and precisely as possible):
used playbook:
ensure your ansible version matches the one bellow
Environment
0.21.0
python3-pyyaml-5.3.1-1.fc31.x86_64
The text was updated successfully, but these errors were encountered: