playbook_sysupgrade: extend fw upgrade automation onto gateways

This commit is contained in:
Gregor Michels 2022-10-24 01:40:41 +02:00
parent a030383fb8
commit 01abb9c160
1 changed files with 7 additions and 2 deletions

View File

@ -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