diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-12-07 15:04:13 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-12-07 17:47:21 +0200 |
commit | 9d4ca3e766f1804249f9744f1f526719cbc8d892 (patch) | |
tree | fb7c99105940a6c0e3c106d3cc3d0f88add4a97b /lvm2.vmdb | |
parent | a748d5416226185d341a50846b4ad759ba941871 (diff) | |
download | vmdb2-9d4ca3e766f1804249f9744f1f526719cbc8d892.tar.gz |
Fix: ansible.vmdb to use modern style of tags
Diffstat (limited to 'lvm2.vmdb')
-rw-r--r-- | lvm2.vmdb | 29 |
1 files changed, 16 insertions, 13 deletions
@@ -2,46 +2,42 @@ # system that boots on a PC with BIOS. Uses LVM2. steps: - - mkimg: "{{ image }}" + - mkimg: "{{ output }}" size: 4G - mklabel: msdos - device: "{{ image }}" + device: "{{ output }}" - mkpart: primary - device: "{{ image }}" + device: "{{ output }}" start: 1M end: 100M tag: /boot - mkpart: primary - device: "{{ image }}" + device: "{{ output }}" start: 100M end: 2G - tag: /rootpv + tag: rootpv - - cryptsetup: /rootpv - tag: rootpv_crypt - key-cmd: echo lvm2.lukskey + - kpartx: "{{ output }}" - vgcreate: rootvg physical: - - rootpv_crypt + - rootpv - lvcreate: rootvg name: rootfs size: 1G - mkfs: ext2 - partition: boot + partition: /boot - mkfs: ext4 partition: rootfs - mount: /boot - - mount: /boot - - mount: rootfs - unpack-rootfs: rootfs @@ -60,12 +56,19 @@ steps: - cache-rootfs: rootfs unless: rootfs_unpacked + # - apt: install + # packages: + # - lvm2 + # tag: rootfs + - chroot: rootfs shell: | sed -i '/^root:[^:]*:/s//root::/' /etc/passwd echo pc-vmdb2 > /etc/hostname +# vgdisplay +# lvdisplay - grub: bios tag: rootfs - image-dev: "{{ image }}" + image-dev: "{{ output }}" console: serial |