perform a firmware update for opnsense via ansible
- name: opnsense
hosts: opnsense
vars:
ansible_become: false
roles:
- role: ansible-opnsense-facts
tags:
- opnsense
- facts
- role: ansible-opnsense-update
tags:
- opnsense
- update
update to a fixed main release version
ansible-playbook -v -e opn_update_desired_version=22.1.5 -l opnsense -D firewalls.yml
update to a fixed hotfix release
ansible-playbook -v -e opn_update_desired_version=23.1.5_4 -l opnsense -D firewalls.yml
update to the lates version available
ansible-playbook -v -e opn_update_force=true -l opnsense -D firewalls.yml
The playbook requires:
- ansible version >= 2.11 (due to the split filter)
- the lates ansible-opnsense-facts to be run before this
- user with shell access to the opnsense box