Check for certain package with specific version exists - Ansible

0 votes
Suppose I have a group called webservers which consists of 3 servers. I would like to check if a certain package with specific version exists or no. How do I do that?
Mar 6, 2019 in Ansible by Kavya
2,623 views

1 answer to this question.

0 votes

Hey @Kavya, to check if a package is installed to a specific version, you can use the command in a similar manner:

$ ansible webservers -m yum -a "name=acme-1.5 state=present"
answered Mar 6, 2019 by Devika

Related Questions In Ansible

0 votes
1 answer

Ensure the package is latest version - Ansible

Ensure a package is at the latest ...READ MORE

answered Mar 6, 2019 in Ansible by Yogesh
481 views
0 votes
1 answer

Ansible Playbook for Creating a VM with OS and multiple data managed disks

Hey @Ammie, Try a playbook something like ...READ MORE

answered Mar 27, 2019 in Ansible by Stark
1,212 views
0 votes
1 answer

Ansible playbook to check if http support for apt is installed

Hi @Hannah, this ansible task should do ...READ MORE

answered Nov 25, 2019 in Ansible by Aria
778 views
+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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,503 views
+2 votes
1 answer
0 votes
2 answers

Check is a package exists - Ansible

Hey There, @here is an example for your ...READ MORE

answered May 6, 2020 in Ansible by Rajat
• 160 points
7,577 views
0 votes
1 answer

Mention Kubernetes version while using it with ansible

Hey @Dustin, The default value for roles is kube_version: ...READ MORE

answered Jan 22, 2019 in Ansible by Anushri
585 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP