Skip to content

Ansible module for manging fortios devices like fortigate, fortiwifi, fortiweb...

Notifications You must be signed in to change notification settings

bjolivot/ansible-module-fortios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FortiOS ansible modules repository

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).

Dependencies

Following python library are required :

These are installed with pip.

Installation

  • 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

Documentation

I hope I have respected Ansible Documentation format, included in modules files.

Todos

  • 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.

License

MIT

About

Ansible module for manging fortios devices like fortigate, fortiwifi, fortiweb...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages