You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the key/val parser there does not try to do typing, YAML itself does do typing, if you pass as a json string it would also preserve type as the JSON parser also does typing, but to avoid any input problems you could just do this: with_items: "{{groups.mygroup[:node_number|int]}}"
Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved.
This is for Ansible 2.X:
When I run a playbook via CLI and providing a such extra variable, node_number as integer:
ansible-playbook my_playbook.yml --extra-vars "node_number=10"
I have a array slice operation within a role of my to take a portion of the playbook:
Here is the error I receive:
Interestingly, when I remove the variable from CLI and provide the same variable from
group_vars/all/common.yml
, it works:The text was updated successfully, but these errors were encountered: