Skip to content

Commit

Permalink
Add EL9 to FIPS role
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Mar 7, 2024
1 parent bc14b05 commit 1118555
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 33 deletions.
20 changes: 0 additions & 20 deletions roles/fips/tasks/el7.yml

This file was deleted.

8 changes: 0 additions & 8 deletions roles/fips/tasks/el8.yml

This file was deleted.

16 changes: 11 additions & 5 deletions roles/fips/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
---
- include_tasks: 'el{{ ansible_distribution_major_version }}.yml'
when: not ansible_fips
- when: not ansible_fips
block:
- name: Install FIPS package
package:
name: crypto-policies-scripts
state: present

- name: reboot vm
reboot:
when: not ansible_fips
- name: enable fips mode
command: /usr/bin/fips-mode-setup --enable

- name: reboot vm
reboot:

- name: 'Verify FIPS enabled - If failed means the machine is not FIPS enabled'
# not using `ansible_fips` here, as that has not been refreshed yet
Expand Down

0 comments on commit 1118555

Please sign in to comment.