Pull Docker images before bringing them up
All checks were successful
Ansible Deploy / Homelab-Deploy (ansible/buildHomelab.yaml) (push) Successful in 2m7s
All checks were successful
Ansible Deploy / Homelab-Deploy (ansible/buildHomelab.yaml) (push) Successful in 2m7s
This commit is contained in:
parent
ac6f7c8905
commit
461d812316
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user