cosmos kiosk playbook

This commit is contained in:
2025-09-28 11:26:45 -07:00
parent 6f4fcb90e2
commit 320ffa8393
7 changed files with 135 additions and 43 deletions

View File

@ -33,16 +33,16 @@
loop: "{{ ansible_mounts }}"
when: item.mount == "/"
- name: All apt packages up to date
- name: Perform apt upgrade
apt:
upgrade: dist
update_cache: yes
- name: apt autoremove
- name: Perform apt autoremove
apt:
autoremove: yes
- name: apt clean
- name: Perform apt clean
apt:
clean: yes
@ -62,7 +62,7 @@
test_command: whoami
when: reboot_required_file.stat.exists
- name: Switch OS from bookworm to trixie
- name: Update OS in sources.list
ansible.builtin.replace:
path: /etc/apt/sources.list
regexp: 'bookworm'
@ -84,7 +84,7 @@
loop_control:
label: "{{ item.path }}"
- name: Use apt to move to trixie
- name: Perform apt upgrade, moving to Trixie
apt:
upgrade: dist
update_cache: yes
@ -99,15 +99,15 @@
- ansible_distribution_major_version == '13'
fail_msg: "Upgrade to Debian 13 failed"
- name: apt autoremove
- name: Perform apt autoremove
apt:
autoremove: yes
- name: apt clean
- name: Perform apt clean
apt:
clean: yes
- name: Reboot on trixie
- name: Reboot to trixie
ansible.builtin.reboot:
msg: "Reboot initiated by Ansible"
connect_timeout: 5