Skip to content

Commit

Permalink
allow running on RHEL 8
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescassell authored and uk-bolly committed Feb 25, 2021
1 parent b3420ef commit 2376f20
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@

- name: Check OS version and family
assert:
that: ansible_os_family == 'RedHat' and ansible_distribution_major_version is version_compare('7', '==')
msg: "This role can only be run against RHEL/CENTOS 7. {{ ansible_distribution }} {{ ansible_distribution_major_version }} is not supported."
that:
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version is version_compare('7', '==') or
ansible_distribution_major_version is version_compare('8', '==')
msg: "This role can only be run against RHEL/CENTOS 7/8. {{ ansible_distribution }} {{ ansible_distribution_major_version }} is not supported."
tags:
- always

Expand Down

0 comments on commit 2376f20

Please sign in to comment.