--- - name: Bad Keys entfernen lineinfile: path: "{{ authorized_keys_file }}" line: "{{ item }}" state: absent with_items: "{{ bad_keys }}" notify: - Cleanup and add timestamp