Add option for private OCI registry auth

This commit is contained in:
Kris Lamoureux 2023-09-29 22:18:59 -04:00
parent 2e02efcbb7
commit 0377a5e642
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -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 }}"