Skip to content

Ansible modules and examples for Fortinet products using the REST API

License

Notifications You must be signed in to change notification settings

gefela/40ansible

 
 

Repository files navigation

40ansible

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

Quickstart

Follow next instructions:

git clone https://github.com/fortinet-solutions-cse/40ansible.git

cd 40ansible

Copy the file fortigate_mix.yml to your base dir:

cp examples/fortigate_mix.yml .

Adapt the IP of the Fortigate in fortigate_mix.yml to your environment

ansible-playbook fortigate_mix.yml

You can then write your own playbooks and use inventory.

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

About

Ansible modules and examples for Fortinet products using the REST API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 94.7%
  • Shell 4.2%
  • Dockerfile 1.1%