1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_epel.git synced 2024-08-16 14:49:49 +02:00

make sure it will war you if you use a not supported OS

This commit is contained in:
L3D 2020-03-02 21:16:03 +01:00
parent 86f953667e
commit 237f666ade
Signed by: l3d
GPG key ID: CD08445BFF4313D1

View file

@ -20,6 +20,9 @@
state: present
fingerprint: "{{ epel_repo['fingerprint'][ ansible_distribution_major_version ] }}"
become: true
when:
- ansible_os_family == 'RedHat'
- ansible_distribution != 'Fedorra'
- name: Install EPEL repo
become: true
@ -29,3 +32,10 @@
register: result
until: result is succeeded
retries: 3
when:
- ansible_os_family == 'RedHat'
- ansible_distribution != 'Fedorra'
- name: info for fedora and non RHEL
pause:
prompt: "Please notice this role is designed to work only with RHEL/CentOS 6,7 and 8"