Thomas Stallinger dc1cb25da0 feat: LibreOffice-Rolle als weitere Office-Suite
Neben OnlyOffice als zusätzliche Katalog-Option, distro-unabhängig
über Flatpak (org.libreoffice.LibreOffice), gleiches present/absent-
Muster wie die onlyoffice-Rolle.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-06 08:45:04 +02:00

42 lines
1.2 KiB
YAML

- name: Ensure marker directory exists
ansible.builtin.file:
path: /run/tuxflotte/agent/applied
state: directory
mode: "0755"
- name: Ensure flathub remote is configured
community.general.flatpak_remote:
name: flathub
flatpakrepo_url: https://flathub.org/repo/flathub.flatpakrepo
state: present
method: system
when: tuxflotte_state == "present"
- name: Install LibreOffice via Flatpak
community.general.flatpak:
name: org.libreoffice.LibreOffice
remote: flathub
state: present
method: system
when: tuxflotte_state == "present"
- name: Record that the libreoffice role ran
ansible.builtin.copy:
dest: /run/tuxflotte/agent/applied/libreoffice.marker
content: "{{ ansible_date_time.iso8601 }}\n"
mode: "0644"
when: tuxflotte_state == "present"
- name: Remove LibreOffice Flatpak (Auftrag abgewählt)
community.general.flatpak:
name: org.libreoffice.LibreOffice
state: absent
method: system
when: tuxflotte_state == "absent"
- name: Remove libreoffice marker (Auftrag abgewählt)
ansible.builtin.file:
path: /run/tuxflotte/agent/applied/libreoffice.marker
state: absent
when: tuxflotte_state == "absent"