- name: Ensure marker directory exists ansible.builtin.file: path: /run/tuxflotte/agent/applied state: directory mode: "0755" # Reguläres Debian/Ubuntu-Paket (per apt-cache auf einer echten # Debian-trixie-Quelle verifiziert, 09.09.2026) - kein Flatpak nötig, # apt/deb hat laut Nutzer-Entscheidung ohnehin Vorrang. Nur die drei # apt-basierten Backends (mint-image/debian-image/ubuntu-image) im Scope, # kein os_family-Zweig nötig (Fedora bewusst ausgeklammert, siehe # project_phase2_app_store_merkmale-Memory). - name: Install Tux Math ansible.builtin.apt: name: tuxmath state: present update_cache: true cache_valid_time: 3600 when: tuxflotte_state == "present" - name: Record that the tuxmath role ran ansible.builtin.copy: dest: /run/tuxflotte/agent/applied/tuxmath.marker content: "{{ ansible_date_time.iso8601 }}\n" mode: "0644" when: tuxflotte_state == "present" - name: Remove Tux Math (Auftrag abgewählt) ansible.builtin.apt: name: tuxmath state: absent when: tuxflotte_state == "absent" - name: Remove tuxmath marker (Auftrag abgewählt) ansible.builtin.file: path: /run/tuxflotte/agent/applied/tuxmath.marker state: absent when: tuxflotte_state == "absent"