There is no play level include statement -- it simply doesn't exist. You don't include roles files, you just list them in the roles section and they are loaded out of the configured roles path.
What version of Ansible are you running? I would have expected this invalid keyword to raise an error in recent versions. On Wed, Apr 30, 2014 at 8:45 AM, Manu J <[email protected]> wrote: > I have a playbook which looks like this > > - hosts: all > include: rails-servers.yml > roles: > - statsd > - app > > The roles in rails-servers.yml are executed. but app & statsd roles are > not executed by ansible (using 1.5). > If I remove the include statement it gets executed. I get no errors when > I run ansible. The roles are silently ignored. > > rails-servers is a common playbook and this particular server needs some > extra roles (statsd and app). What's the > idiomatic way of doing it in ansible? > > -- > 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/eb11fba3-2101-426f-be8a-0cecb0d7389b%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/eb11fba3-2101-426f-be8a-0cecb0d7389b%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 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/CA%2BnsWgxB2iRjKtU0LG0Q1tTb6zYYnYSQEfA%2Bu_dE7meBM4QPCw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
