Compare commits

..

10 commits

Author SHA1 Message Date
Raphael Dannecker
efd48de6c7 The virt-viewer package must be explicitly selected for trixie 2025-06-05 13:02:12 +02:00
Raphael Dannecker
db6197d0a0 Prevents the --options option in vm-run from interfering with other options 2025-06-05 12:48:10 +02:00
Raphael Dannecker
563ac18483 Add host to inventory 2025-06-04 11:20:58 +02:00
Raphael Dannecker
76c7cc042a Configure display resolution / audio out for specific clients 2025-06-04 10:49:47 +02:00
Raphael Dannecker
84865291e0 Allow multiple macvtap-VMs to use the same MAC address 2025-06-04 10:26:56 +02:00
Raphael Dannecker
6e119e0129 Omit backports, because Trixie does not have backports yet 2025-06-04 10:21:18 +02:00
Andreas B. Mundt
6063e65089 Fixes for trixie 2025-05-14 12:33:39 +02:00
Andreas B. Mundt
0e0950d184 Fix conditionals for ansible version in trixie 2025-05-14 12:33:39 +02:00
Raphael Dannecker
ce31924a3c Remove unnecessary systemd-resolved 2025-05-08 07:16:12 +02:00
Raphael Dannecker
f0fd1d5aa0 Skip delegate_to tasks when running in installer 2025-05-07 14:38:01 +02:00
14 changed files with 702 additions and 667 deletions

File diff suppressed because it is too large Load diff

View file

@ -220,7 +220,7 @@
ansible.builtin.blockinfile:
path: /usr/share/sddm/themes/debian-breeze/Main.qml
marker: // {mark} ANSIBLE MANAGED BLOCK
insertbefore: '\s+//Footer'
insertbefore: '^}$'
block: |
Text {
id: hostname

View file

@ -14,7 +14,7 @@
main non-free-firmware
state: present
update_cache: true
# when: extra_pkgs_bpo|length
when: extra_pkgs_bpo | length > 0 or extra_pkgs_bpo1 | length > 0 or extra_pkgs_bpo2 | length > 0
- name: Install extra packages from backports
ansible.builtin.apt:
@ -25,6 +25,7 @@
- "{{ extra_pkgs_bpo }}"
- "{{ extra_pkgs_bpo1 }}"
- "{{ extra_pkgs_bpo2 }}"
when: extra_pkgs_bpo | length > 0 or extra_pkgs_bpo1 | length > 0 or extra_pkgs_bpo2 | length > 0
- name: Timestamp successfull run and send up-to-date report
ansible.builtin.shell:

View file

@ -6,6 +6,7 @@ kde_desktop_pkg:
- calligra
- codeblocks
- dia
- filius
- flameshot
- freecad
- fritzing
@ -14,8 +15,9 @@ kde_desktop_pkg:
- inkscape
- kde-full
- keepassxc
- kicad
- kicad-doc-de
- librecad
- mu-editor
- openboard
- qtcreator
- spyder
@ -34,3 +36,5 @@ kde_desktop_pkg:
- xdg-desktop-portal-kde
- xdg-desktop-portal-wlr # share screen in browser
- xournalpp
kde_desktop_pkg_bpo: [ ]

View file

@ -8,19 +8,14 @@
repo: deb http://deb.debian.org/debian/ {{ ansible_distribution_release }}-backports main non-free-firmware
state: present
update_cache: true
when: kde_desktop_pkg_bpo | length > 0
- name: Install extra packages from backports
ansible.builtin.apt:
name:
- filius
- kicad
- kicad-doc-de
- libreoffice
- libreoffice-l10n-de
- libreoffice-qt5
state: latest # noqa package-latest
name: "{{ kde_desktop_pkg_bpo }}"
autoremove: true
default_release: "{{ ansible_distribution_release }}-backports"
when: kde_desktop_pkg_bpo | length > 0
- name: Create akonadi config dir

View file

@ -9,7 +9,7 @@
ansible.builtin.blockinfile:
path: /usr/share/sddm/themes/debian-breeze/Main.qml
marker: // {mark} ANSIBLE MANAGED BLOCK localhome
insertbefore: '\s+//Footer'
insertbefore: '^}$'
block: |
Text {
id: localhome

View file

@ -98,7 +98,7 @@
export superusers
password_pbkdf2 root {{ grub_pwd }}
notify: Run update-grub
when: grub_pwd|default(false)
when: grub_pwd | bool | default(false)
- name: Allow booting grub menu entries
ansible.builtin.lineinfile:

View file

@ -5,14 +5,14 @@
mode: '0644'
content: >
{{ apt_conf }}
when: apt_conf|default(false)
when: apt_conf | bool | default(false)
- name: Set NTP server
ansible.builtin.lineinfile:
path: /etc/systemd/timesyncd.conf
insertafter: '^#NTP='
line: NTP={{ ntp_serv }}
when: ntp_serv|default(false)
when: ntp_serv | bool | default(false)
- name: Add proposed-updates repository
ansible.builtin.apt_repository:

View file

@ -37,7 +37,7 @@
line: "SystemGroup root lpadmin {{ printer_admin_group }}"
regexp: '^SystemGroup'
state: present
when: printer_admin_group | length
when: printer_admin_group | length > 0
- name: Disable cups-browsed
ansible.builtin.systemd:

View file

@ -216,7 +216,7 @@ while true; do
shift
;;
-o | --options )
LIBVIRTOPTS=$2
LIBVIRTOPTS="${LIBVIRTOPTS} $2"
shift 2
;;
--no-viewer )
@ -267,6 +267,7 @@ while true; do
type="ethernet,mac=${mac},target.dev=${interface},xpath1.set=./target/@managed=no,model.type=virtio"
LIBVIRTOPTS="${LIBVIRTOPTS} --network type=$type"
done
LIBVIRTOPTS="${LIBVIRTOPTS} --check mac_in_use=off"
shift
;;
--os )

View file

@ -18,6 +18,7 @@
- mktorrent
- libvirt-daemon-system
- virt-manager
- virt-viewer
- dialog # for vm-netboot menu
# - name: allow all users to use VMs

View file

@ -20,7 +20,9 @@
when: result.stdout is not defined or result.stdout!="reachable"
- name: Configure WG Server
when: result.stdout is defined and result.stdout=="reachable"
when:
- result.stdout is defined and result.stdout=="reachable"
- not run_in_installer|default(false)|bool
block:
- name: Set facts wg_clientname
ansible.builtin.set_fact:

View file

@ -46,6 +46,7 @@
ansible.builtin.include_tasks: eap-tls_issue-certificate.yaml
when:
- radius_reachable.stdout is defined and radius_reachable.stdout=="reachable"
- not run_in_installer|default(false)|bool
- |
( not cert_client_active.stat.exists ) or
(cert_serial.stdout | replace('serial=','') | int(base=16) ) in ( radius_crl.revoked_certificates | map(attribute='serial_number') | list ) or

View file

@ -3,7 +3,6 @@
- name: Install packages related to wifi
ansible.builtin.apt:
name:
- systemd-resolved
- firmware-realtek # for our wifi sticks
- name: Provide service to enable WiFi on boot