Merge "Changes to make fips work on ubuntu"

This commit is contained in:
Zuul 2023-02-27 05:02:43 +00:00 committed by Gerrit Code Review
commit 6054680b60
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