Thanks, That worked fine. Although i still don't understand what just happened. You say that earlier it was taking commonFiles as string bu the error message says 'expecting string found list'.
On Monday, 13 March 2017 20:18:23 UTC+1, Kai Stian Olstad wrote: > > 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/d3aecfad-d67b-4b9a-bbda-fade93c9d81c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
