I got it. For whatever reason skip_missing=True didn't work. But the 
following does, at least after updating Ansible to 2.2.0, which I did a few 
minutes ago:

 with_subelements:
  - "{{ firewalld_zones }}"
  - services
  - skip_missing: yes


On Thursday, June 2, 2016 at 11:56:14 AM UTC-5, Joanna Delaporte wrote:
>
> What is the syntax for the third element that can be used with_subelements 
> to use to skip missing subelements?
>
> "Optionally, you can add a third element to the subelements list, that 
> holds a dictionary of flags. Currently you can add the ‘skip_missing’ flag. 
> If set to True, the lookup plugin will skip the lists items that do not 
> contain the given subkey. Without this flag, or if that flag is set to 
> False, the plugin will yield an error and complain about the missing 
> subkey."
>

-- 
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/a4fc2b59-8c35-4940-b48e-acd2348de99c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to