On Thursday, January 8, 2015 at 10:46:17 PM UTC-5, Tony Kinsley wrote:
>
> It looks like you are trying to dynamically include a task file. I am
> pretty sure that is not possible. You can only dynamically include vars
> files.
>
Thanks Tom.
I thought it was possible from reading the URL I posted at the beginning of
this thread.
I particular I saw this:
Michael DeHaan
> Most all ansible modules already abstract out OS details.
> Package managers we want you to know - not only do package names change,
> but the way you interact with those packages change - think of how
> different Apache is between Ubuntu and CentOS for instance.
>
> You can do things like
> - include: "{{ ansible_os_family }}.yml"
>
> And you can also do things like use "include_vars" with similar tricks
> where you want to maintain differences.
>
> In most cases you'll only differ by variables except having a few tasks
> with "when" statements on them keying off the OS - which will also minimize
> task duplication.
I got the impression from that post that it was possible to dynamically
include a task file.
--
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/fb956e18-71d1-466a-bd41-4887bb425a4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.