fixes ghcr pull

This commit is contained in:
2025-12-01 16:27:24 +01:00
parent 86486f5684
commit 6da88e3be5
3 changed files with 2 additions and 22 deletions

View File

@@ -1,14 +1,4 @@
- name: Ensure deployment of Docker Compose applications
hosts: Docker_Compose_Hosts
pre_tasks:
- name: Login to GHCR (if credentials provided)
community.docker.docker_login:
registry_url: ghcr.io
username: "{{ ghcr_username }}"
password: "{{ ghcr_pat }}"
when:
- ghcr_username | default('') | length > 0
- ghcr_pat | default('') | length > 0
become: true
roles:
- docker_compose