At 2014-05-19 12:34:22 +0200, [email protected] wrote:
>
> - name: create additional vhost dirs
> file: path={{ item.vhost_dir }} state=directory group=apache mode=0755
> with_items: apache_vhosts
> when: apache_vhosts is defined
The reason this doesn't work is that your vhost_dir is a list.
Perhaps you could use something like:
- name: create additional vhost dirs
file: path={{ item.1 }} state=directory group=apache mode=0755
when: apache_vhosts is defined
with_subelements:
- apache_vhosts
- vhost_dirs
http://docs.ansible.com/playbooks_loops.html#looping-over-subelements
-- ams
--
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/20140519114512.GB17698%40toroid.org.
For more options, visit https://groups.google.com/d/optout.