Compare commits

...

3 commits

Author SHA1 Message Date
c145a9c33a Merge branch 'master' into 0.12 2025-03-15 09:20:09 +01:00
40ae8191f2 Merge pull request '✏️ host: tau: Fix misleading task name' () from docker-registry into master
Reviewed-on: 
Reviewed-by: Stefan Haun <tux@netz39.de>
2025-03-14 19:02:18 +01:00
7eebfd5d61 ✏️ 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")
2025-03-14 08:50:56 +01:00

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: