✏️ 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: f539a42024 ("Add a docker registry")
This commit is contained in:
Alexander Dahl 2025-03-14 08:50:56 +01:00
parent e1b9349f19
commit 7eebfd5d61

View file

@ -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: