diff --git a/tasks/centos/main.yml b/tasks/centos/main.yml new file mode 100644 index 0000000000000000000000000000000000000000..7367dbab912f58e160439a8026c4726ebd541b3b --- /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 91e083e057ede8fdd0ee8b2166e10461dcea0541..2b718a9c3057fffb21cd43e349d93dfe671140d7 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