Hi,
main.yml:
- include: somefile.yml
when: variable is defined
somefile.yml:
- name: do some stuff
file: path="/x/y/x/application{{ item }}" state=directory
with_sequence: start="{{variable.start}}" end="{{variable.end}}"
Runs into an error when variable is -not- defined, as it seems to include
somefile.yml anyway and then complains about it being unable to parse the
sequence. (unknown error parsing with_sequence arguments:)
Considering that the include is conditional, why is it even processing the
file? I also tried adding the condition to this specific task, that is add
the 'when' clause to somefile.yml, however this results in the same error.
Any ideas?
Thanks,
Nico
--
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/d96b2207-f12e-4549-9e38-8501ad5ee817%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.