Updated to manage dnf

This commit is contained in:
2023-11-26 04:42:17 +05:30
parent 6918e9d2d9
commit c358e9a8e3

View File

@@ -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'