Pull Docker images before bringing them up
All checks were successful
Ansible Deploy / Homelab-Deploy (ansible/buildHomelab.yaml) (push) Successful in 2m7s

This commit is contained in:
justus 2024-12-16 09:52:58 -05:00
parent ac6f7c8905
commit 461d812316

View File

@ -83,10 +83,16 @@
src: assets/{{ inventory_hostname }}/compose.yml.j2 src: assets/{{ inventory_hostname }}/compose.yml.j2
dest: /root/docker/compose.yml dest: /root/docker/compose.yml
backup: true backup: true
- name: Pull images
ansible.builtin.shell: docker compose pull
args:
chdir: /root/docker
- name: Run Docker - name: Run Docker
ansible.builtin.shell: docker compose up -d --remove-orphans ansible.builtin.shell: docker compose up -d --remove-orphans
args: args:
chdir: /root/docker chdir: /root/docker
- name: Prune images
ansible.builtin.shell: docker image prune -f
- name: Local server Wireguard - name: Local server Wireguard
hosts: hosts: