- 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 OnlyOffice via Flatpak community.general.flatpak: name: org.onlyoffice.desktopeditors remote: flathub state: present method: system when: tuxflotte_state == "present" - name: Record that the onlyoffice role ran ansible.builtin.copy: dest: /run/tuxflotte/agent/applied/onlyoffice.marker content: "{{ ansible_date_time.iso8601 }}\n" mode: "0644" when: tuxflotte_state == "present" - name: Remove OnlyOffice Flatpak (Auftrag abgewählt) community.general.flatpak: name: org.onlyoffice.desktopeditors state: absent method: system when: tuxflotte_state == "absent" - name: Remove onlyoffice marker (Auftrag abgewählt) ansible.builtin.file: path: /run/tuxflotte/agent/applied/onlyoffice.marker state: absent when: tuxflotte_state == "absent"