Ensure the package is latest version - Ansible

0 votes
I have a group called webservers. I want to check if a specific package is the latest version. How do I do that?
Mar 6, 2019 in Ansible by Nisha

1 answer to this question.

0 votes

Ensure a package is at the latest version:

$ ansible webservers -m yum -a "name=acme state=latest"

Replace yum and the name according to your requirement.

answered Mar 6, 2019 by Yogesh

Related Questions In Ansible

0 votes
1 answer
+1 vote
2 answers

What is the difference between ansible playbook and roles?

Hi, Roles: Roles containing certain vars_files, tasks, and handlers ...READ MORE

answered Jan 21 in Ansible by vivek
• 530 points
0 votes
1 answer

What is the difference between the host file and an inventory file in ansible?

Actually both are same. hosts file is ...READ MORE

answered Feb 12, 2019 in Ansible by Amith
• 140 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
+1 vote
3 answers