From a8b8e3af4b178e9ce9d229d667a261084de8efd4 Mon Sep 17 00:00:00 2001 From: Dmitriy Safronov <zimniy@cyberbrain.pw> Date: Tue, 25 May 2021 14:04:41 +0300 Subject: [PATCH] centos --- tasks/centos/main.yml | 7 +++++++ tasks/main.yml | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 tasks/centos/main.yml diff --git a/tasks/centos/main.yml b/tasks/centos/main.yml new file mode 100644 index 0000000..7367dba --- /dev/null +++ b/tasks/centos/main.yml @@ -0,0 +1,7 @@ +--- + +- name: Enable EPEL repo + dnf: + name: epel-release + state: present + update_cache: yes diff --git a/tasks/main.yml b/tasks/main.yml index 91e083e..2b718a9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,3 +5,9 @@ include_tasks: ubuntu/main.yml when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian' or ansible_distribution == 'Linux Mint' tags: ubuntu + +# Centos +- name: Perform specific setup for RedHat, Centos + include_tasks: centos/main.yml + when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' + tags: centos -- GitLab