
The enable-fips role has been refactored to support both centos/rhel and Ubuntu. In addition, for the Ubuntu tasks, a small role is added to enable a Ubuntu Advantage subscription. This is required because Ubuntu requires a subscription to enable FIPS. This role takes a subscription key as a parameter (ubuntu_ua_token.token). In Openstack, this is provided by the openstack-fips job in openstack/project-config, which will be the base job for OpenStack jobs. This job will provide the ubuntu_ua_token.token. Change-Id: I47a31f680172b47584510adb672b68498a85bd32
13 lines
280 B
YAML
13 lines
280 B
YAML
- name: Install ua-tools
|
|
become: true
|
|
package:
|
|
name: ubuntu-advantage-tools
|
|
state: present
|
|
|
|
- name: Attach subscription
|
|
command: pro attach --no-auto-enable "{{ ubuntu_ua_token.token }}"
|
|
become: true
|
|
no_log: true
|
|
when: >
|
|
(ansible_distribution == "Ubuntu")
|