Add RH Support

This commit is contained in:
madereddy
2023-12-11 14:13:02 -05:00
parent e8648367dd
commit ccaac87277
3 changed files with 65 additions and 1 deletions
+14
View File
@@ -8,6 +8,20 @@
apt:
update_cache: yes
upgrade: safe
when: ansible_os_family == "Debian"
- name: "Updating and Upgrading Yum Packages"
yum:
name: '*'
state: latest
when: ansible_os_family == "RedHat"
# For DNF-based systems (e.g., Fedora), you can add a similar task:
- name: "Updating and Upgrading Dnf Packages"
dnf:
name: '*'
state: latest
when: ansible_distribution == "Fedora"
# Specific adjustments for Raspbian can be made here, if necessary
# Raspbian will typically be covered by the Debian task, but if you have specific needs, you can specify them here.