Ansible role to configure OPNsense firewalls
Mirrored to https://github.com/485514/ansible-opnsense
- OPNsense firewall with shell access
An example: https://github.com/naturalis/oss-network-demo/tree/master/ansible/basic
sudo pip install lxml
sudo pip3 install lxml
sudo apt install secure-delete
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
---
- hosts: firewalls
gather_facts: false
become: false
roles:
- ansible-opnsense
...
Become on play level is not needed for XML changes on localhost only for tasks to fetch/push config.xml and restart services on OPNsense.
ansible-playbook -c paramiko firewalls.yml -l firewall1 -t user,fetch,copy,reload
https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-opnsense-playbook
Other possible usefull ansible roles related to opnsense:
- https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-opnsense-facts
- https://github.com/Rosa-Luxemburgstiftung-Berlin/ansible-opnsense-checkmk
Apache 2.0
- Rudi Broekhuizen - [email protected]
- Privazio - [email protected] - https://github.com/privazio
- Foppe Pieters - [email protected]
- Klaus Zerwes - https://github.com/zerwes