-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.yml
146 lines (127 loc) · 3.43 KB
/
main.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
---
# ubuntu_installer_packages: define to override installation packages
# ubuntu_installer_image_url: define to override the ubuntu iso location (e.g. when using a local proxy)
# ubuntu_preseed_url: define to force netbooting
# ubuntu_installer_username: # required
# ubuntu_installer_password: # required
# ubuntu_installer_sshkey: # required
#
ubuntu_installer_late_command: '' # override seed file late command
ubuntu_installer_disk: '' # override seed file disk autodetection
ubuntu_installer_packages:
- syslinux
- syslinux-utils
- openssh-client
- genisoimage
- xorriso
- p7zip-full
ubuntu_installer_package_state: present
ubuntu_installer_target_dir: "/tmp"
ubuntu_installer_target_filename: "{{ ubuntu_installer_hostname }}.iso"
ubuntu_installer_hostname: host.example.com
ubuntu_installer_interface: # override seed file network autoconfiguration
static: false
ubuntu_installer_interface_name: eno1 # should probably be overriden
ubuntu_installer_poweroff: false
ubuntu_installer_mirror: archive.ubuntu.com
ubuntu_installer_image_packages: []
ubuntu_installer_security_mirror: security.ubuntu.com
ubuntu_installer_image_url: https://releases.ubuntu.com/jammy/ubuntu-22.04.3-live-server-amd64.iso
ubuntu_installer_iso_path: "{{ ubuntu_installer_target_dir }}/{{ ubuntu_installer_hostname }}.orig.iso"
ubuntu_installer_partman_method: lvm # [(lvm)|(regular)]
ubuntu_installer_cloudinit: /nocloud
ubuntu_installer_seed_url: ''
# override installer type detection with ubuntu_installer type
# ubuntu_installer_type: live | debian
__ubuntu_installer_live_storage_map:
lvm: lvm
regular: direct
# override storage configuration with ubuntu_installer_live_storage parameter
__ubuntu_installer_live_storage:
regular:
- ptable: gpt
grub_device: true
type: disk
id: disk0
- device: disk0
size: 1MB
flag: bios_grub
type: partition
id: bios_boot_partition
- device: disk0
size: 1G
wipe: superblock
type: partition
id: boot_partition
- device: disk0
size: -1
wipe: superblock
type: partition
id: root_partition
- fstype: ext4
volume: boot-partition
type: format
id: boot-fs
- fstype: ext4
volume: root_partition
type: format
id: boot-fs
- device: boot-fs
path: /boot
type: mount
id: boot-mount
- device: root-fs
path: /
type: mount
id: root-mount
lvm:
- ptable: gpt
wipe: superblock
grub_device: true
type: disk
id: disk0
- device: disk0
size: 1MB
flag: bios_grub
type: partition
id: bios_boot_partition
- device: disk0
size: 1GB
wipe: superblock
type: partition
id: boot_partition
- fstype: ext4
volume: boot_partition
preserve: false
type: format
id: boot_fs
- device: disk0
size: -1
wipe: superblock
type: partition
id: root_pv
- name: ubuntu-vg
devices:
- root_pv
preserve: false
type: lvm_volgroup
id: root_vg
- name: ubuntu-lv
volgroup: root_vg
size: 100%
preserve: false
type: lvm_partition
id: root_lv
- fstype: ext4
volume: root_lv
preserve: false
type: format
id: root_fs
- device: format-0
path: /boot
type: mount
id: boot_mount
- device: root_fs
path: /
type: mount
id: root_mount