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
+24 -1
View File
@@ -1,5 +1,5 @@
---
- name: Install various utilities on Debian/Ubuntu
- name: Install various utilities on Debian/Ubuntu and Red Hat systems
hosts: all
become: yes
gather_facts: yes
@@ -9,6 +9,7 @@
apt:
update_cache: yes
cache_valid_time: 3600 # Cache valid for 1 hour
when: ansible_os_family == "Debian"
- name: Install packages for Debian/Ubuntu
apt:
@@ -22,6 +23,28 @@
- net-tools
- unzip
state: present
when: ansible_os_family == "Debian"
- name: Install EPEL Repository (Red Hat/CentOS)
yum:
name: epel-release
state: present
when: ansible_os_family == "RedHat"
- name: Install packages for RedHat/CentOS
yum:
name:
- "@Development Tools"
- git
- vim
- curl
- wget
- htop
- tar
- net-tools
- unzip
state: present
when: ansible_os_family == "RedHat"
# This will run after the previous play is completed
- import_playbook: install_docker.yml