HOW TO UPDATE A PACKAGE LIST WITH ANSIBLE
---
- name: Update package list
hosts: test1 test2 test3 test4 test5
tasks:
- name: Update dhcp package
yum:
name: dhcp
state: latest
update_only: yes
- name: Update dhcp dhcp-common
yum:
name: dhcp-common
state: latest
update_only: yes
- name: Update dhcp dhcp-libs
yum:
name: dhcp-libs
state: latest
update_only: yes
- name: Update dhcp dhclient
yum:
name: dhclient
state: latest
update_only: yes
Comments