make sure the target dir exists before copying files into it

This commit is contained in:
Tim Flink 2015-05-08 01:20:20 +00:00
parent 240823fcab
commit 9d65562324

View file

@ -87,6 +87,14 @@
# For some reason, virsh will always find qemu:///session instead
# of the qemu:///system that we need, so force a new default
#
- name: ensure libvirt user has config dir for libvirt
file:
path: /home/{{ libvirt_user }}/.config/libvirt
state: directory
owner: {{ phabricator_daemon_user }}
group: {{ phabricator_daemon_user }}
mode: 1775
- name: create libvirt config for libvirt remote user
copy:
src: libvirt.conf