Commit 053cea23 authored by Simon Cornet's avatar Simon Cornet
Browse files

feat: add pre_task for updating role

parent 53a7de5f
Loading
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -4,5 +4,16 @@
- name: "install and configure a DHCP server"
  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: "dhcp"