Files
ayurishchevandClaude Opus 5.5 d0ab6b94f9 Ansible: deliver validator-agent from the artreg registry instead of building on each host
The role resolves image_tag to a digest once per run and pulls that image
on every validator before replacing the container; the git and build
steps are gone. scripts/publish-agent-image.sh builds and pushes the
agent image (<rev12> and latest tags).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 23:59:33 +03:00

14 lines
584 B
YAML

---
# Образ скачивается по digest до замены контейнера: если реестр недоступен,
# старый контейнер продолжает работать.
- name: Pull the image by digest
ansible.builtin.command: "docker pull {{ image_pull_ref }}"
register: pulled
changed_when: "'Downloaded newer image' in pulled.stdout"
- name: Read the image id
ansible.builtin.command:
argv: [docker, image, inspect, --format, "{% raw %}{{.Id}}{% endraw %}", "{{ image_pull_ref }}"]
changed_when: false
register: built_image