From b99088c20d5a4a7c3e874664ae7a35461fd72250 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 3 Oct 2025 15:55:17 +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 e81428d..6d3971c 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -4,6 +4,17 @@ - name: "install and configure the Zabbix Agent" 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_agent"