From 8316aaa2910d34ea61fd01193b00369daf6a8765 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 3 Oct 2025 15:55:09 +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 dc39b6e..2a14206 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -5,5 +5,16 @@ hosts: "all" serial: 1 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: "dns"