--- - name: check if post-post-install script is present stat: path: /post-post-install.sh register: hetzner_post_post_install - name: run post-post-install script when: hetzner_post_post_install.stat.exists command: /post-post-install.sh - name: remove installimage artifacts loop: - /installimage.conf - /installimage.debug - /post-install - /post-post-install.sh - /target file: path: "{{ item }}" state: absent