Thanks - that works for me.
On Friday, July 11, 2014 5:37:12 PM UTC-4, Michael DeHaan wrote:
>
> This is a bad idea because it won't group multiple package installs into
> one transaction, so you'll spend more time in updates, and also you don't
> have the various apt controls that you need.
>
> However, if you want to:
>
> action: "{{ ansible_pkg_mgr }} name=blah state=latest"
>
>
>
>
> On Fri, Jul 11, 2014 at 4:37 PM, Mzp45 <[email protected] <javascript:>>
> wrote:
>
>> Hi,
>> I'm trying to install a package but the package manager varies across the
>> distro. I'd like to implement something like this for e.g
>>
>> - name: install the latest version of vmware-tools
>> {{ ansible_pkg_mgr }}: name=vmware-tools-esx-nox state=latest
>> tags:
>> - vmware-tools
>>
>> Is this possible within the main tasks file?
>>
>> Thanks
>>
>> --
>> 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] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/c4c68d87-3de1-4823-adfd-183b4c0e3d8e%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/ansible-project/c4c68d87-3de1-4823-adfd-183b4c0e3d8e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
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/25cc6c5f-a92c-453c-8742-7229319bdba3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.