Comment outdated stuff.

This commit is contained in:
Andreas B. Mundt 2023-08-14 17:39:57 +02:00
parent e4639f3418
commit 6da010f89b

View file

@ -176,30 +176,30 @@
changed_when: result.stdout | length > 0
#### VMs
- name: Deploy initial image list
copy:
src: images.list
dest: /var/lib/libvirt/images/images.list
force: false
- name: rsync VM image definitions
command: >
rsync -a --itemize-changes
rsync://server:/vmimages-download/xml /var/lib/libvirt/images/
become: true
become_user: lmnsynci
register: result
changed_when: result.stdout | length > 0
when: not run_in_installer | default(false) | bool
- name: rsync VM images
command: >
rsync -a -i --files-from=/var/lib/libvirt/images/images.list
rsync://server:/vmimages-download/ /var/lib/libvirt/images/
become: true
become_user: lmnsynci
register: result
changed_when: result.stdout | length > 0
when: >
false and not run_in_installer | default(false) | bool and (ansible_mounts |
selectattr("mount", "equalto", "/") | list)[0].size_available > 80000000000
#- name: Deploy initial image list
# copy:
# src: images.list
# dest: /var/lib/libvirt/images/images.list
# force: false
#
#- name: rsync VM image definitions
# command: >
# rsync -a --itemize-changes
# rsync://server:/vmimages-download/xml /var/lib/libvirt/images/
# become: true
# become_user: lmnsynci
# register: result
# changed_when: result.stdout | length > 0
# when: not run_in_installer | default(false) | bool
#
#- name: rsync VM images
# command: >
# rsync -a -i --files-from=/lmn/lib/libvirt/images/images.list
# rsync://server:/vmimages-download/ /var/lib/libvirt/images/
# become: true
# become_user: lmnsynci
# register: result
# changed_when: result.stdout | length > 0
# when: >
# false and not run_in_installer | default(false) | bool and (ansible_mounts |
# selectattr("mount", "equalto", "/") | list)[0].size_available > 80000000000