Hi,
Is it possible to combine with_items with when? so i.e.
- name: Vhosts apache config
template: src=apache_vhost.j2 dest=/etc/apache2/sites-available/{{
item.domain }}.conf
with_items: apache.vhosts
when: "ansible_os_family == 'Debian' and item.state == 'availible'"
tags:
- apache
notify:
- reload apache2
For this I get: error while evaluating conditional
so I can choose for the loop if it is run according to an property set on
this item?
If not is there a workaround or anything for it?
Thanks
--
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/2e28badb-2ca7-4019-ae9e-78fb9468e62a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.