From 6217ab1156e4ee00e167f1ac9be3c62103090f68 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 3 Oct 2025 15:55:05 +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 cf52a52..e26f492 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -5,5 +5,16 @@ hosts: "all" serial: 2 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: "common"