I'm trying to figure out how to pass a non-string variable to a module
https://gist.github.com/uncreative/adfe926267d0ee5b3de3
Has anyone figured it out?
turns inty_var and floaty_var within parametered module into strings:
- name: thingy with vars
parametered_module.py:
thingy:
stringy_var: "{{ item['stringy'] }}"
inty_var: "{{ item['inty'] }}"
floaty_var: "{{ item['floaty'] }}"
with_items:
- {'stringy': 'asdf', 'inty': 3, 'floaty': 123.21}
Thanks for your help!
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/913ead1a-e6e7-4bde-95b4-c9279ac7abfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.