From 7eebfd5d6167a3c4c45c053d0393682ac579dcac Mon Sep 17 00:00:00 2001 From: Alexander Dahl <alex@netz39.de> Date: Fri, 14 Mar 2025 08:50:56 +0100 Subject: [PATCH] :pencil2: host: tau: Fix misleading task name Task here is to check the auth dir, not the data dir, that's a different one. Rename the used variable while at it. Fixes: f539a42024a4 ("Add a docker registry") --- host-tau.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/host-tau.yml b/host-tau.yml index e92b6e4..e204b4d 100644 --- a/host-tau.yml +++ b/host-tau.yml @@ -86,11 +86,11 @@ - name: Check if Docker Registry auth dir exists ansible.builtin.stat: path: "{{ data_dir }}/registry/auth" - register: docker_dir - - name: Fail if docker registry data dir does not exist + register: docker_registry_auth_dir + - name: Fail if Docker Registry auth dir does not exist ansible.builtin.fail: msg: "Docker Registry auth dir is missing, please restore from the backup!" - when: not docker_dir.stat.exists + when: not docker_registry_auth_dir.stat.exists - name: Ensure the Docker Registry data directory exists # This may not be part of the backup ansible.builtin.file: