From 8cc502631a8442a64a8b56f5bde18835383f2a27 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 8 Feb 2021 12:55:17 +0000 Subject: [PATCH] Fix for AlmaLinux and add EPEL --- roles/el/tasks/packages-cli.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/el/tasks/packages-cli.yml b/roles/el/tasks/packages-cli.yml index c8bec07..23c8167 100644 --- a/roles/el/tasks/packages-cli.yml +++ b/roles/el/tasks/packages-cli.yml @@ -1,9 +1,15 @@ --- -- name: Install Ansible repo +- name: Install CentOS Ansible repo become: true dnf: name: centos-release-ansible-29 state: present + when: ansible_distribution == 'CentOS' +- name: Install EPEL + become: true + dnf: + name: epel-release + state: present - name: Install CLI packages become: true dnf: