You can use :-
*- name: install the latest version of <package_name>
yum:
name: <package_name>
state: **latest*
OR
*- name: install one specific version of <package_name>
yum:
name: <package_name>-2.9.amzn1
state: present*
On Thursday, October 18, 2018 at 7:06:50 AM UTC+5:30, Chad Fay wrote:
>
> I'm new at this, I'm trying to figure out how to pass the -y flag when I
> am installing with the yum module. I've tried pkg=<package_name> -y but
> that doesn't work. I'm obviously doing something completely wrong, I'm just
> not sure what.
>
> Thank you.
>
--
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/6b62d8a6-1e58-4a96-b74a-726037cfefd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.