-
Notifications
You must be signed in to change notification settings - Fork 1
/
fdo-image.yml
43 lines (39 loc) · 1.35 KB
/
fdo-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
- name: Generate an FDO-enabled RHEL for Edge simplified installer
hosts: image_builder
become: true
gather_facts: true
vars:
installation_device: /dev/vda
builder_blueprint_name: fdo-demo
manufacturing_server_port: 8080
tasks:
- name: Set up osbuild server
ansible.builtin.import_role:
name: infra.osbuild.setup_server
- name: Build FDO-enabled simplified installer image
ansible.builtin.import_role:
name: infra.osbuild.builder
vars:
builder_request_timeout: 480
builder_compose_type: edge-simplified-installer
builder_compose_customizations:
installation_device: "{{ installation_device }}"
fdo:
manufacturing_server_url: "http://{{ manufacturing_server_host }}:{{ manufacturing_server_port }}"
diun_pub_key_insecure: "true"
user:
name: "core"
description: "test user"
password: "{{ builder_core_password }}"
key: "{{ builder_core_pub_key }}"
groups:
- "users"
- "wheel"
builder_compose_pkgs: []
- name: Download latest installer image to local host
ansible.posix.synchronize:
dest: "{{ playbook_dir }}"
src: "{{ builder_image_path }}"
mode: pull
when: download_image | bool | default(false)