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
When I do this, the roles in rails-servers.yml (mysql / ruby / memcached) are executed but the roles in site.yml (statsd / app) are silently ignored.
Solved it by changing the syntax to
file: site.yml
include: rails-servers.yml
hosts: all
roles:
statsd
app
file: rail-servers.yml
hosts: all
roles:
mysql
ruby
memcached
This is not clearly explained in the documentation. Btw I think there was some misunderstanding of terminology in the original
email. I was using include at play level but at playbook level.