first of all: connection: localhost
is wrong, you can omit it as the 'implicit localhost' already uses a local connection or use: connection: local So roles are meant to reuse tasks, even so you still need to setup target hosts, in the case of cloud modules that 'target' is normally localhost (target is where the module executes). That is why you always need a play, as roles do not target hosts, just provide a set of tasks and resources to run. ---------- 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/CACVha7fGoBnXKN-x8BQ8ngDi8efhCy_DF8%3Do-TkjM-Wgi36yiQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
