feat: add pre_task for updating role

This commit is contained in:
Simon Cornet 2025-10-03 15:54:50 +02:00
commit 3c666ceebd

View file

@ -4,5 +4,16 @@
- name: "install and configure a log forwarder"
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: "log_forwarder"