kvm_host: Move os disks to dedicated disk
This commit is contained in:
parent
cdc505274d
commit
31d00d0b9d
3 changed files with 13 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
char: "{{ 'bcdefghijklmnopqrstuvwxyz'|list }}"
|
char: "{{ 'bcdefghijklmnopqrstuvwxyz'|list }}"
|
||||||
console_log: "/var/log/libvirt/qemu/{{ inventory_hostname }}.console.log"
|
console_log: "/var/log/libvirt/qemu/{{ inventory_hostname }}.console.log"
|
||||||
os_disk_image: "/srv/libvirt/ssd/{{ inventory_hostname }}.a.img"
|
os_disk_image: "/srv/libvirt/os/{{ inventory_hostname }}.a.img"
|
||||||
dsk_opts: bus=virtio,cache=none,device=disk,format=raw,sparse=no
|
dsk_opts: bus=virtio,cache=none,device=disk,format=raw,sparse=no
|
||||||
|
|
||||||
inject: >-
|
inject: >-
|
||||||
|
|
|
@ -26,6 +26,15 @@
|
||||||
passno: "0"
|
passno: "0"
|
||||||
dump: "0"
|
dump: "0"
|
||||||
state: mounted
|
state: mounted
|
||||||
|
- name: Mount /export/libvirt/os
|
||||||
|
ansible.posix.mount:
|
||||||
|
name: /export/libvirt/os
|
||||||
|
src: LABEL=os
|
||||||
|
fstype: xfs
|
||||||
|
opts: noatime,noexec,nosuid,nodev
|
||||||
|
passno: "0"
|
||||||
|
dump: "0"
|
||||||
|
state: mounted
|
||||||
- name: Mount /export/libvirt/ssd
|
- name: Mount /export/libvirt/ssd
|
||||||
ansible.posix.mount:
|
ansible.posix.mount:
|
||||||
name: /export/libvirt/ssd
|
name: /export/libvirt/ssd
|
||||||
|
@ -35,6 +44,7 @@
|
||||||
passno: "0"
|
passno: "0"
|
||||||
dump: "0"
|
dump: "0"
|
||||||
state: mounted
|
state: mounted
|
||||||
|
when: inventory_hostname == "vmhost01.home.foo.sh"
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
|
|
|
@ -35,7 +35,9 @@
|
||||||
with_items:
|
with_items:
|
||||||
- /export/libvirt
|
- /export/libvirt
|
||||||
- /export/libvirt/hdd
|
- /export/libvirt/hdd
|
||||||
|
- /export/libvirt/nvme
|
||||||
- /export/libvirt/ssd
|
- /export/libvirt/ssd
|
||||||
|
- /export/libvirt/os
|
||||||
|
|
||||||
- name: Link data directory
|
- name: Link data directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|
Loading…
Add table
Reference in a new issue