summaryrefslogtreecommitdiff
path: root/ansible.vmdb
diff options
context:
space:
mode:
Diffstat (limited to 'ansible.vmdb')
-rw-r--r--ansible.vmdb29
1 files changed, 17 insertions, 12 deletions
diff --git a/ansible.vmdb b/ansible.vmdb
index 4e96e7f..1378024 100644
--- a/ansible.vmdb
+++ b/ansible.vmdb
@@ -12,33 +12,38 @@ steps:
device: "{{ output }}"
start: 0%
end: 100%
- part-tag: root-part
+ tag: /
+ - kpartx: "{{ output }}"
+
- mkfs: ext4
- partition: root-part
+ partition: /
+
+ - mount: /
- - mount: root-part
- fs-tag: root-fs
-
- - unpack-rootfs: root-fs
+ - unpack-rootfs: /
- debootstrap: stretch
mirror: http://deb.debian.org/debian
- target: root-fs
+ target: /
unless: rootfs_unpacked
- apt: install
packages:
- linux-image-amd64
- - python
- fs-tag: root-fs
+ fs-tag: /
unless: rootfs_unpacked
- - cache-rootfs: root-fs
+ - apt: install
+ packages:
+ - python
+ fs-tag: /
+
+ - cache-rootfs: /
unless: rootfs_unpacked
- - ansible: root-fs
+ - ansible: /
playbook: ansible.yml
- grub: bios
- tag: root-fs
+ tag: /