Note: This is work in progress so take care of managing production devices /!\
At this moment, only following modules are availlable :
-
fortios_config.py : this module manage import and export configuration files.
-
fortios_address: This module manage firewall address objects (add, remove, update). Currently, it support ipmask, fqdn, geography and ip ranges address types.
-
fortios_address_group: This module manage firewall address groups (add & remove members, update).
Following python library are required :
These are installed with pip.
- Install the dependencies
$ pip install pyFG
$ pip install netaddr
- Clone this repository
$ git clone https://github.com/bjolivot/ansible-module-fortios /home/ansible/library
- update your ansible.cfg file with following line
library = /home/ansible/library/fortios
I hope I have respected Ansible Documentation format, included in modules files.
- Add missing modules (users, policies, adom support...)
- Remove external dependencies
- Python3 port
- add tests
- Ansible community modules integration
- ...
Feel free to contribute at any level.
MIT