- hosts : all
vars:
myfiles : ["old"]
tasks:
- name: "facts"
set_fact:
myfiles: "{{ [item] | union(myfiles) }}"
with_items:
- "new1"
- "new2"
- "new3"
- name: "Debug"
debug:
var=myfiles "myfiles": [
"new3",
"old"
]--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/93fbd2d2-3169-4a7c-aed0-9c36e7ccc4ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I use the dev branch. Unfortunately we use chef also. i hope will be replaced soon. Till then i have to use some data bags. So i have a bunch of json file i need to put in a list and start using some of variables.
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b18428db-066b-45b6-aa87-294d8812693f%40googlegroups.com.