enable-fips: Fedora also support FIPS

Fedora supports FIPS. There is no version check because the feature is
available on all the supported Fedora releases.

Change-Id: I924fb565a4d70e7c93a215e9e0a5b2b80bced52a
This commit is contained in:
Gonéri Le Bouder 2021-10-28 15:02:38 -04:00
parent 72581dcaac
commit 3cba437a15
No known key found for this signature in database
GPG Key ID: 049ED9B94765572E

View File

@ -1,10 +1,11 @@
--- ---
- name: Make sure this role is run on RHEL/CentOS 8 systems - name: Make sure this role is run on RHEL/CentOS 8 systems
fail: fail:
msg: This role supports RHEL/CentOS 8 systems only msg: This role supports RHEL/CentOS 8 systems and Fedora only
when: when:
- (ansible_distribution != 'CentOS' and ansible_distribution != 'Red Hat Enterprise Linux') or - not (ansible_distribution == 'CentOS' and ansible_distribution_major_version|int >= 8)
ansible_distribution_major_version != '8' - not (ansible_distribution == 'Red Hat Enterprise Linux' and ansible_distribution_major_version|int >= 8)
- not ansible_distribution == 'Fedora'
- name: Install fips-mode-setup - name: Install fips-mode-setup
become: true become: true