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]> 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].
> 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/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/CA%2BnsWgxSTng_GdS7N%2BuV%2B2U27OeK2j68Q8jNu%2BKuuttXA20xHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to