- fail: when: function is defined - name: notify that backups are not supported debug: msg: backup host is missing, will not set up backups when: services.backup is not mapping - name: install restic with custom configuration block: - include_role: name: restic vars: backup: "{{ backup_cfg }}" when: services.backup is mapping and backup_cfg is mapping - name: install restic with default configuration block: - include_role: name: restic vars: backup: dirs: "{{ collected_backup_dirs }}" password: "{{ backup_password }}" tags: automated filter: - "*.log" - "node_modules" - ".npm" when: services.backup is mapping and backup_cfg is not defined and backup_password is defined