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