Merge "Added constraints to qemu save dir check and move"
This commit is contained in:
1 changed files with 4 additions and 0 deletions
@@ -24,12 +24,16 @@
until:_qemu_save_dir.stat.exists | bool
retries:5
delay:10
failed_when:false
register:_qemu_save_dir
- name:Check if the qemu save directory is empty
command:'ls -1A /var/lib/libvirt/qemu/save'
changed_when:false
register:_qemu_save_dir_contents
when:
- _qemu_save_dir.stat.isdir is defined
- _qemu_save_dir.stat.isdir | bool
- name:Move the existing save directory to nova_libvirt_save_path
command:"mv /var/lib/libvirt/qemu/save {{ nova_libvirt_save_path }}"
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.