Skip to content

Commit

Permalink
repositories: move check fips to satellite ca install (#553)
Browse files Browse the repository at this point in the history
* repositories: move check fips to satellite ca install

* add changelog

* fix changelog url
  • Loading branch information
mnecas committed Jun 23, 2022
1 parent 87ade23 commit ae11849
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
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

0 comments on commit ae11849

Please sign in to comment.