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

repositories: move check fips to satellite ca install #553

Merged
merged 3 commits into from
Jun 23, 2022
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
3 changes: 3 additions & 0 deletions changelogs/fragments/553-repositories-move-check-fips.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- repositories - Move fips check to satellite CA install block (https://github.com/oVirt/ovirt-ansible-collection/pull/553).
8 changes: 8 additions & 0 deletions roles/repositories/tasks/install-satellite-ca.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
---
- name: Check if FIPS is enabled
ansible.builtin.command: cat /proc/sys/crypto/fips_enabled
changed_when: false
register: fips_check_command

- name: Set FIPS enabled variable
ansible.builtin.set_fact:
ovirt_repositories_fips_enabled: "{{ fips_check_command.stdout == '1' }}"

- name: Install Satellite certificates wihtout FIPS
ansible.builtin.dnf:
Expand Down
9 changes: 0 additions & 9 deletions roles/repositories/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@
include_tasks: backup-repos.yml
when: ovirt_repositories_repos_backup

- name: Check if FIPS is enabled
ansible.builtin.command: cat /proc/sys/crypto/fips_enabled
changed_when: false
register: fips_check_command

- name: Set FIPS enabled variable
ansible.builtin.set_fact:
ovirt_repositories_fips_enabled: "{{ fips_check_command.stdout == '1' }}"

- name: Setup repositories
block:
- name: Install Satellite CA
Expand Down