This project contains Ansible modules for FortiGate and FortiMail
It depends on https://pypi.python.org/pypi/fortiosapi
You can install it with pip:
pip install fortiosapi
If your environment does not support pip installation the latest version is located in:
https://github.com/fortinet-solutions-cse/fortiosapi/tree/master/fortiosapi
Note: FortiGate versions are supported from 5.6 onwards
Examples are available at the following project: https://github.com/fortinet-solutions-cse/40ansible-examples
Please note Ansible does not run on FortiGate, instead you must run it locally, on a specific server or Docker image (dockerfile provided).
More complete documentation on modules in Ansible documentation: http://docs.ansible.com/ansible/modules.html