On 13. mars 2017 19:08, ishan jain wrote:
I am trying to have a condition on a single item of a 'with_items' list but
as i cannot do it directly, i found the following snippet:
- name: prepare a list of common files that must be copied
set_fact: commonFiles=['1/f1', '1/f2']
commonFiles will be a string when using Ansible key value format and the
value contain a space.
I recommend using the YAML format.
- name: prepare a list of common files that must be copied
set_fact:
commonFiles: ['1/f1', '1/f2']
--
Kai Stian Olstad
--
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/db22fa7a-16e7-ee5c-af82-a4c03963bcad%40olstad.com.
For more options, visit https://groups.google.com/d/optout.