Compare commits
2 Commits
0989d0c586
...
dcbaf6b807
| Author | SHA1 | Date | |
|---|---|---|---|
| dcbaf6b807 | |||
| 5dfc3a7813 |
@@ -1,6 +1,24 @@
|
|||||||
|
- name: Create volume group
|
||||||
|
community.general.lvg:
|
||||||
|
vg: longhorn_vg
|
||||||
|
pvs:
|
||||||
|
- /dev/sdb
|
||||||
|
pvresize: yes
|
||||||
|
|
||||||
|
- name: Create logical volume
|
||||||
|
community.general.lvol:
|
||||||
|
vg: longhorn_vg
|
||||||
|
lv: longhorn_lv
|
||||||
|
size: 100%VG
|
||||||
|
|
||||||
|
- name: Create filesystem
|
||||||
|
community.general.filesystem:
|
||||||
|
dev: /dev/mapper/longhorn_vg-longhorn_lv
|
||||||
|
fstype: ext4
|
||||||
|
|
||||||
- name: Mount dynamic disk
|
- name: Mount dynamic disk
|
||||||
ansible.posix.mount:
|
ansible.posix.mount:
|
||||||
path: /mnt/blockstorage
|
path: /mnt/blockstorage
|
||||||
src: /dev/sdb
|
src: /dev/mapper/longhorn_vg-longhorn_lv
|
||||||
fstype: ext4
|
fstype: ext4
|
||||||
state: mounted
|
state: mounted
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
ansible.builtin.cron:
|
ansible.builtin.cron:
|
||||||
name: firstboot
|
name: firstboot
|
||||||
special_time: reboot
|
special_time: reboot
|
||||||
job: "/opt/firstboot/firstboot.sh"
|
job: "/opt/firstboot/firstboot.sh >/dev/tty1 2>&1"
|
||||||
|
|
||||||
- name: Copy payload folder
|
- name: Copy payload folder
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
|||||||
@@ -56,4 +56,5 @@ dependencies:
|
|||||||
url: http://github.com/mikefarah/yq/releases/download/v4.25.3/yq_linux_amd64
|
url: http://github.com/mikefarah/yq/releases/download/v4.25.3/yq_linux_amd64
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
- lvm2
|
||||||
- skopeo
|
- skopeo
|
||||||
|
|||||||
Reference in New Issue
Block a user