You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
I am using the roles + site.yml recommended setup.
Most, but not all boxes run telegraf (a stats collector), which is defined as an inventory group as a (tagged) role in site.yml.
In my Redis role, if the current host has the telegraf role I'd like to add a file a folder (so Telegraf will pick it up) and refresh the telegraf service.
Here is where it gets tricky - I would basically call out to a different role - what is the way to do this in Ansible?
Dick Davies
unread,
Sep 21, 2016, 3:42:36 AM9/21/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible list
I've used role dependencies to address a similar requirement (collectd
in our case).
If you make the telegraf role a dependency of the redis role, you'll
have access to vars
set by the telegraf role as well as its handlers by the time the redis
role runs.
you just a need a file roles/redis/meta/main.yml that looks like this: