Get ready for bookworm by default.

This commit is contained in:
Andreas B. Mundt 2023-03-14 17:12:53 +01:00
parent cb9f5fdb23
commit 5640c3e76b
3 changed files with 26 additions and 8 deletions

View file

@ -22,7 +22,7 @@
- console-setup - console-setup
- krb5-user - krb5-user
- unattended-upgrades - unattended-upgrades
extra_pkgs_bpo: [ linux-image-amd64 ] extra_pkgs_bpo: [] # [ linux-image-amd64 ]
ansible_python_interpreter: "/usr/bin/python3" ansible_python_interpreter: "/usr/bin/python3"
roles: roles:
@ -49,14 +49,22 @@
replace: 'GRUB_CMDLINE_LINUX="i915.force_probe=4909"' replace: 'GRUB_CMDLINE_LINUX="i915.force_probe=4909"'
notify: update grub notify: update grub
when: ansible_board_vendor == "LENOVO" and ansible_board_name == "32CB" when: ansible_board_vendor == "LENOVO" and ansible_board_name == "32CB"
- name: add bookworm
- name: add bookworm firmware repository if needed
apt_repository: apt_repository:
repo: deb http://deb.debian.org/debian/ bookworm non-free-firmware repo: deb http://deb.debian.org/debian/ bookworm non-free-firmware
state: present state: present
update_cache: true update_cache: true
when: ansible_board_vendor == "LENOVO" and ansible_board_name == "32CB" when: >
ansible_board_vendor == "LENOVO" and
ansible_board_name == "32CB" and
ansible_distribution_release == "bullseye"
- name: upgrade non-free-firmware packages - name: upgrade non-free-firmware packages
apt: apt:
upgrade: true upgrade: true
autoremove: true autoremove: true
autoclean: true autoclean: true
when: >
ansible_board_vendor == "LENOVO" and
ansible_board_name == "32CB" and
ansible_distribution_release == "bullseye"

View file

@ -17,5 +17,9 @@
## Either one of the variables is defined: ## Either one of the variables is defined:
- name: join the domain - name: join the domain
shell: shell:
cmd: echo "{{ ansible_cmdline.adpw | default('') + adpw.user_input | default('') }}" | adcli join --stdin-password -U global-admin {{ domain | upper }} cmd: >
when: ansible_cmdline.adpw | default('') | length > 0 or adpw.user_input | default('') | length > 0 echo "{{ ansible_cmdline.adpw | default('') + adpw.user_input | default('') }}" |
adcli join --stdin-password -U global-admin {{ domain | upper }}
when: >
ansible_cmdline.adpw | default('') | length > 0 or
adpw.user_input | default('') | length > 0

View file

@ -103,12 +103,18 @@
force: false force: false
- name: rsync VM image definitions - name: rsync VM image definitions
command: rsync -a --itemize-changes rsync://server:/vmimages-download/xml /var/lib/libvirt/images/ command: >
rsync -a --itemize-changes
rsync://server:/vmimages-download/xml /var/lib/libvirt/images/
register: result register: result
changed_when: result.stdout | length > 0 changed_when: result.stdout | length > 0
- name: rsync VM images - name: rsync VM images
command: rsync -a -i --files-from=/var/lib/libvirt/images/images.list rsync://server:/vmimages-download/ /var/lib/libvirt/images/ command: >
rsync -a -i --files-from=/var/lib/libvirt/images/images.list
rsync://server:/vmimages-download/ /var/lib/libvirt/images/
register: result register: result
changed_when: result.stdout | length > 0 changed_when: result.stdout | length > 0
when: not run_in_installer | default(false) | bool and (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