From a1fdee2c38de2f0bda1e558138726dbaea22f40b Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth <git@tilmanvatteroth.de> Date: Tue, 1 Mar 2022 17:52:06 +0100 Subject: [PATCH] Check for existence of config file instead of directory --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 5e9772f..478cb50 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -18,7 +18,7 @@ - name: Check if Repo already exists stat: - path: "{{ borgbackup_pool }}/{{ ansible_hostname }}/{{ borgbackup_repo_path }}" + path: "{{ borgbackup_pool }}/{{ ansible_hostname }}/{{ borgbackup_repo_path }}/config" register: repo delegate_to: "{{ borgbackup_target_host }}" -- GitLab