fix: playbook
This commit is contained in:
parent
270129167c
commit
150346a7af
1 changed files with 20 additions and 4 deletions
|
|
@ -1,6 +1,22 @@
|
||||||
---
|
---
|
||||||
- name: "Configure router"
|
|
||||||
hosts: "router"
|
# execute this role
|
||||||
|
- name: "install and configure a router"
|
||||||
|
hosts: "all"
|
||||||
|
serial: 1
|
||||||
become: true
|
become: true
|
||||||
roles:
|
tasks:
|
||||||
- "ans-router"
|
|
||||||
|
# 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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue