On 22.04.16 16:00 Jeff Hardy wrote:
> I have a static inventory setup with the hope of applying different roles
> to different hosts, but am finding that this playbook is not achieving what
> I would like:
>
> - hosts: "{{target}}"
> pre_tasks:
> - debug: var=role
> roles:
> - "{{role}}"
^^^^^^^^
Maybe you need a different variable here, something like:
hostvars[target]['role']Johannes -- 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/571A6ADB.6090403%40ojkastl.de. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
