Files
grm/ansible/roles/gitea-runner/tasks/docker_update.yml
T
Emil Simeonov 129cfe3c79
CI / lint (push) Has been cancelled
CI / unit-tests (push) Has been cancelled
CI / molecule-tests (push) Has been cancelled
GRM-20: fix molecule idempotence with mode-specific systemd templates
2026-06-19 14:12:58 +02:00

13 lines
584 B
YAML

---
- name: Pull gitea_runner image
ansible.builtin.command: docker pull {{ gitea_runner_docker_image }}:{{ gitea_runner_version | regex_replace('^v', '') }}
changed_when: "'Downloaded newer image' in pull_result.stdout or 'Status: Downloaded' in pull_result.stdout"
register: pull_result
- name: Restart gitea-runner systemd instance
ansible.builtin.systemd:
name: "gitea-runner-{{ runner_mode }}@{{ runner_name }}"
state: restarted
daemon_reload: true
when: systemd_available is defined and systemd_available.stat is defined and systemd_available.stat.exists