Commit 150346a7 authored by Simon Cornet's avatar Simon Cornet
Browse files

fix: playbook

parent 27012916
Loading
Loading
Loading
Loading
+20 −4
Original line number Diff line number Diff line
---
- name: "Configure router"
  hosts: "router"

# execute this role
- name: "install and configure a router"
  hosts: "all"
  serial: 1
  become: true
  roles:
    - "ans-router"
  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

    # execute the role
    - name: "execute role: router"
      ansible.builtin.include_role:
        name: "router"