Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EL9 to FIPS role #1785

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading