Updated to manage dnf
This commit is contained in:
@@ -2,7 +2,13 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: Update all packages
|
- name: Update apt packages
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
upgrade: yes
|
upgrade: yes
|
||||||
|
when: ansible_distribution == 'Debian'
|
||||||
|
- name: Update rpm packages
|
||||||
|
dnf:
|
||||||
|
name: "*"
|
||||||
|
state: latest
|
||||||
|
when: ansible_distribution == 'Fedora'
|
||||||
|
|||||||
Reference in New Issue
Block a user