On 28. sep. 2017 04:36, Frank Dias wrote:
- name: Set facts about if resources already exists
set_fact: resource_{{ item.item.key }}={{item.stdout}}
with_items: resource_exist.results
The error message is not really helpful, but the problem is that your
with_items: is missing jinja templating. As it stands now item is
literally the text "resource_exist.results"
So you need this:
with_items: '{{ resource_exist.results }}'
--
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/fa0fe748-cbdc-5109-0f29-5ef2b5c02351%40olstad.com.
For more options, visit https://groups.google.com/d/optout.