Skip time consuming VM syncing during installation, cleanup.

This commit is contained in:
Andreas B. Mundt 2023-02-18 10:00:23 +01:00
parent 354075f530
commit cb9f5fdb23
3 changed files with 14 additions and 16 deletions

View file

@ -111,4 +111,4 @@
command: rsync -a -i --files-from=/var/lib/libvirt/images/images.list rsync://server:/vmimages-download/ /var/lib/libvirt/images/
register: result
changed_when: result.stdout | length > 0
when: (ansible_mounts | selectattr("mount", "equalto", "/") | list)[0].size_available > 80000000000
when: not run_in_installer | default(false) | bool and (ansible_mounts | selectattr("mount", "equalto", "/") | list)[0].size_available > 80000000000