Changes to make fips work on ubuntu

Change-Id: Ibda3e9369a177151ce222f87bbf05fc5a37a47d6
This commit is contained in:
Ade Lee 2023-02-23 11:50:01 +01:00
parent d0f6b18735
commit c22e4c1cc3
2 changed files with 8 additions and 4 deletions

View File

@ -17,5 +17,4 @@
- name: Do tasks for Ubuntu
include_tasks: ubuntu.yaml
when: >
(ansible_distribution == "Ubuntu")
when: ansible_distribution == 'Ubuntu'

View File

@ -4,9 +4,14 @@
name: ubuntu-advantage-tools
state: present
- name: Enable fips
- name: Enable fips and fips-updates
become: true
command: ua enable fips
shell: |
set -o pipefail
yes | ua enable fips
echo
args:
executable: '/bin/bash'
- name: Verify fips is enabled
become: true