fixes: ghost image upgrades and smartctl exporter

This commit is contained in:
2026-07-27 12:51:28 -04:00
parent b3fdf181a1
commit 386e165f6b
6 changed files with 116 additions and 7 deletions
+19 -3
View File
@@ -1,10 +1,26 @@
---
- name: Pull latest images and update Docker Compose stacks
- name: Pre-build images to ensure base images are pulled
become: true
ansible.builtin.command:
cmd: docker compose build --pull
chdir: "{{ item }}"
loop: "{{ docker_compose_dirs | default([]) }}"
changed_when: false
register: _build_result
- name: Pull latest non-buildable service images
become: true
ansible.builtin.command:
cmd: docker compose pull --ignore-buildable
chdir: "{{ item }}"
loop: "{{ docker_compose_dirs | default([]) }}"
changed_when: false
- name: Update Docker Compose stacks
become: true
community.docker.docker_compose_v2:
project_src: "{{ item }}"
state: present
pull: always
pull: never
build: always
loop: "{{ docker_compose_dirs | default([]) }}"