fix: use and reference credentialfile
This commit is contained in:
parent
b9f158c30f
commit
107417aaac
3 changed files with 20 additions and 6 deletions
|
|
@ -4,6 +4,17 @@
|
|||
- name: "configure zot"
|
||||
block:
|
||||
|
||||
# create sync credentials file
|
||||
- name: "create sync credentials file"
|
||||
ansible.builtin.template:
|
||||
src: "zot/sync-credentials.json.j2"
|
||||
dest: "/etc/zot/sync-credentials.json"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0600"
|
||||
notify: "restart zot"
|
||||
when: "zot_dockerhub_username is defined and zot_dockerhub_password is defined"
|
||||
|
||||
# create config file
|
||||
- name: "create config file"
|
||||
ansible.builtin.template:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue