Add option for private OCI registry auth
This commit is contained in:
parent
2e02efcbb7
commit
0377a5e642
@ -4,6 +4,13 @@
|
|||||||
state: present
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
||||||
|
- name: Login to private registry
|
||||||
|
community.docker.docker_login:
|
||||||
|
registry_url: "{{ docker_login_url | default('') }}"
|
||||||
|
username: "{{ docker_login_user }}"
|
||||||
|
password: "{{ docker_login_pass }}"
|
||||||
|
when: docker_login_user is defined and docker_login_pass is defined
|
||||||
|
|
||||||
- name: Create docker-compose root
|
- name: Create docker-compose root
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ docker_compose_root }}"
|
path: "{{ docker_compose_root }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user