- name: Check if we already installed borgmatic stat: path: "/etc/systemd/system/borgmatic@.service" register: borgmatic_installed - name: "Install borg and borgmatic" include: install.yml when: not borgmatic_installed.stat.exists