✏️ 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:
parent
e1b9349f19
commit
7eebfd5d61
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue