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:
parent
86f953667e
commit
237f666ade
1 changed files with 10 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue