How do I update CentOS using Ansible?

0 votes
How do I update CentOS using ansible?
Feb 4, 2019 in Ansible by Richard
1,318 views

1 answer to this question.

0 votes

You can use the yum module in the playbook like this:

- name: upgrade all packages
  yum: name=* state=latest

answered Feb 4, 2019 by Diana

Related Questions In Ansible

0 votes
1 answer

How do I wget a file from web server using shell in the ansible playbook

Hey Ayaan, you could probably use this ...READ MORE

answered Jan 24, 2019 in Ansible by Anushri
1,546 views
0 votes
1 answer
0 votes
1 answer

How do I check uptime on hundreds of servers using Ansible?

You need an Ansible box for this, ...READ MORE

answered Nov 15, 2019 in Ansible by Eric
2,846 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
680 views
+2 votes
1 answer
0 votes
2 answers

How do i install Ansible using virtualenv

Adding to @Mohit's answer,  For CentOS and RHEL: sudo ...READ MORE

answered Jan 10, 2019 in Ansible by Dikinson
2,321 views
0 votes
1 answer

How do I make my_dir available for all hosts? - Ansible

Hey @Kiara,  f you want to make my_dir available to ...READ MORE

answered Feb 1, 2019 in Ansible by Anisha
113 views