- name: Ensure marker directory exists ansible.builtin.file: path: /run/tuxflotte/agent/applied state: directory mode: "0755" - name: Record that the guest-session role ran ansible.builtin.copy: dest: /run/tuxflotte/agent/applied/guest-session.marker content: "{{ ansible_date_time.iso8601 }}\n" mode: "0644" when: tuxflotte_state == "present" - name: Remove guest-session marker (Auftrag abgewählt) ansible.builtin.file: path: /run/tuxflotte/agent/applied/guest-session.marker state: absent when: tuxflotte_state == "absent"