Thanks that solved it. :)

On Wed, Apr 9, 2014 at 3:40 PM, Michael DeHaan <[email protected]> wrote:

> - {role: ansible_nginx, tags: nginx,  users:  - user: [] webdir: /var/www}
>>
>
>
> Try running this through yamllint.com and you'll see this isn't quite
> valid YAML, which is the problem.
>
>
>
>
>
> On Mon, Apr 7, 2014 at 9:58 AM, Marko Lisica <[email protected]>wrote:
>
>> Hi,
>>
>> Seems like I am running in circles trying to setup "universal" plays.
>>
>> I have nginx role that is setting up server blocks according to defined
>> users.
>>
>> - name: add default site template
>>>   template: src=default.conf.j2 dest=/etc/nginx/sites-available/{{
>>> item.1 }}.conf
>>>   notify: restart nginx
>>>   with_subelements:
>>>       - users
>>>       - webdir
>>>
>>
>> Here are vars:
>>
>>  users:
>>>   - user: detlic
>>>     webdir:
>>>       - woodpecker.com
>>>       - aligator.com
>>>   - user: keder
>>>     webdir: []
>>>
>>>
>> Is it possibile to pass this kind of a list in a playbook?
>>
>> - {role: ansible_nginx, tags: nginx,  users:  - user: [] webdir: /var/www}
>>>
>>
>> Obviously this is just example that does not work. But I cant figure if
>> it is possibilie.
>>
>>
>> --
>> 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/92cf341c-b74a-4718-834f-a095b7b15b0c%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/92cf341c-b74a-4718-834f-a095b7b15b0c%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/URYfgkz0EpI/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAEVJ8QMD_Bj6Y_R5uDkFyFPC5mmrOR%3D1yzYhJSMdmamLWf7TmA%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CAEVJ8QMD_Bj6Y_R5uDkFyFPC5mmrOR%3D1yzYhJSMdmamLWf7TmA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CABqYKhAg%2B4u0LnqzxU02y9%3DjTBD7CAv52PFijjh9Q5C9a1o%2B0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to