er .. no, but this will work:

ansible-playbook  gen_playbooks/*.yml

On Fri, Jun 12, 2015 at 3:38 PM, Karol StÄ™pniewski <[email protected]> wrote:
> Hi,
>
> My goal is to include all playbooks from a certain directory. Those
> playbooks will be generated dynamically, so I wanted to avoid specifying
> exact names of each playbook.
>
> I tried:
>
> - include: "{{ item }}"
>   with_fileglob:
>     - gen_playbooks/*.yml
>   when: # some condition
>
>
> But I've got:
>
> ERROR: file could not read: /mnt/ansible/{{ item }}
>
>
>
> Looks like {{ item }} is not being evaulated in this context.
>
> Is there any other way to do what I want to achieve?
>
> Best Regards,
> Karol
>
> --
> 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/9a03d7a6-7401-430e-a7e3-3d028a9dd78d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Brian Coca

-- 
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/CAJ5XC8kJSqxGMqTb7LhyPSzWCm5tYH52KF89qufvsB524g7dAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to