Given that this works just fine in the v2 release of Ansible:
(vagrant) [vagrant@atrebla:vagrant] ansible --version
ansible 2.2.0.0
config file =
configured module search path = Default w/o overrides
(vagrant) [vagrant@atrebla:vagrant] ansible-playbook loop.yml
PLAY [Test set_facts for loop.]
************************************************
TASK [setup]
*******************************************************************
ok: [localhost]
TASK [set_fact]
****************************************************************
ok: [localhost]
TASK [debug]
*******************************************************************
ok: [localhost] => {
"foo": [
"one"
]
}
TASK [set_fact]
****************************************************************
ok: [localhost] => (item=two)
ok: [localhost] => (item=three)
TASK [debug]
*******************************************************************
ok: [localhost] => {
"foo": [
"one",
"two",
"three"
]
}
PLAY RECAP
*********************************************************************
localhost : ok=5 changed=0 unreachable=0 failed=0
I'm curious to know: why not just upgrade?
--
--
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/35997488-2ddd-4a6a-9d3f-900c6e2cb782%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.