ansible-alpine-host/tasks/chroot.yml
2022-04-09 21:29:22 -03:00

21 lines
400 B
YAML

---
- name: "Create a chroot. Bind mount /dev into /mnt."
mount:
state: "mounted"
src: "/dev"
path: "/mnt/dev"
opts: "bind"
fstype: "none"
- name: "Mount /sys into /mnt."
mount:
state: "mounted"
src: "sys"
path: "/mnt/sys"
fstype: "sysfs"
- name: "Mount /proc into /mnt."
mount:
state: "mounted"
src: "proc"
path: "/mnt/proc"
fstype: "proc"