playbook_sysupgrade: extend fw upgrade automation onto gateways
This commit is contained in:
parent
a030383fb8
commit
01abb9c160
|
@ -1,10 +1,15 @@
|
|||
---
|
||||
- name: upgrade firmware on openwrt device(s)
|
||||
hosts: accesspoints
|
||||
hosts:
|
||||
- accesspoints
|
||||
- gateways
|
||||
vars:
|
||||
running_garet_profile: "{{ ansible_local['garet']['profile'] | default() }}"
|
||||
running_garet_release: "{{ ansible_local['garet']['release'] | default() }}"
|
||||
firmware_file: "firmware/garet_{{ garet_profile }}-{{ garet_release }}.bin"
|
||||
firmware_suffix:
|
||||
accesspoints: "bin"
|
||||
gateways: "img.gz"
|
||||
firmware_file: "firmware/garet_{{ garet_profile }}-{{ garet_release }}.{{ firmware_suffix[group_names | first] }}"
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- name: gather firmware version
|
||||
|
|
Reference in New Issue