From 3ef657fa8b6cdb79ac7c6048d7c1673d9c844b3b Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 3 Oct 2025 15:55:27 +0200 Subject: [PATCH] feat: add pre_task for updating role --- playbook.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/playbook.yaml b/playbook.yaml index 505756a..b4534ef 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -4,6 +4,17 @@ - name: "install and configure the Zabbix Proxy" hosts: "all" become: true + pre_tasks: + + # due to semaphore bug we need to do this ourselves + - name: "force-update requirements" + ansible.builtin.command: + cmd: "ansible-galaxy install -f -r roles/requirements.yml" + become: false + delegate_to: "localhost" + changed_when: false + failed_when: false + roles: - role: "zabbix_prereq" - role: "zabbix_proxy"