blob: 11fdd74f36b43c9b9a33b707ba8010ae634aa71e (
plain) (
blame)
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
|
---
- name: Converge
hosts: instance
gather_facts: true
vars:
hostname: "{{ test_hostname }}"
partition_wipe: false
partition_disk: "{{ test_device }}"
partition_boot:
num: 1
name: "boot"
flags: [boot, esp]
part_start: "0%"
part_end: "1.0GiB"
fstype: "vfat"
fstype_opts: "-F 32"
dev: "{{ partition_disk }}p1"
mount_path: "/mnt/boot/efi"
fstab_opts: "defaults,nodev,nosuid,noexec,umask=0077"
partition_swap:
num: 2
name: "swap"
flags: [swap]
part_start: "1.0GiB"
part_end: "2.0GiB"
fstype: "ext4"
dev: "{{ partition_disk }}p2"
mount_path: "none"
partition_root:
num: 3
name: "root"
part_start: "2.0GiB"
part_end: "100%"
fstype: "ext4"
dev: "{{ partition_disk }}p3"
mount_path: "/mnt"
partition_extras: []
bootstrap_pi: "{{ hostvars['localhost']['test_bootstrap_pi'] }}"
bootstrap_proxmox: "{{ hostvars['localhost']['test_bootstrap_proxmox'] }}"
configure_playbook_dir: "../../../ansible-distro-configure"
pre_tasks:
- name: "Get test facts"
ansible.builtin.set_fact:
test_device: "{{ hostvars['localhost']['test_device'] }}"
test_hostname: "{{ hostvars['localhost']['test_hostname'] }}"
roles:
- role: partition
- role: bootstrap
- role: configure
|