kvm-host: move libvirt image dir
This commit is contained in:
parent
f0063bc84a
commit
b5d86ca4cf
14
kvm-host/tasks/images.yml
Normal file
14
kvm-host/tasks/images.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
- name: Create images directory
|
||||||
|
file:
|
||||||
|
path: '/home/images'
|
||||||
|
state: directory
|
||||||
|
owner: root
|
||||||
|
group: libvirt
|
||||||
|
mode: 02775
|
||||||
|
|
||||||
|
- name: Symlink for libvirt images directory
|
||||||
|
file:
|
||||||
|
src: '/home/images'
|
||||||
|
dest: '/var/lib/libvirt/images'
|
||||||
|
state: link
|
|
@ -19,3 +19,4 @@
|
||||||
when: usr_partition.rc == 0
|
when: usr_partition.rc == 0
|
||||||
|
|
||||||
- include: munin.yml
|
- include: munin.yml
|
||||||
|
- include: images.yml
|
||||||
|
|
Loading…
Reference in a new issue