Fortinet black logo

Administration Guide

Ansible Collection

Ansible Collection

The FortiFlex Ansible Collection can be used to run playbooks to interact with FortiFlex. The FortiFlex Ansible Collection can be found on GitHub and Ansible Galaxy.

Note

You can get support from the Fortinet Inc. Technical Assistance Center or from the community engineering team by filing an issue in the GitHub issues page. For support with common Ansible issues, you can get support from the Ansible community.

Before you can begin to use the Ansible Collection, you must:

  1. Install Python3.

  2. Install Ansible.

    Note

    The Ansible core version 2.9.0 and later is required.

  3. Install the latest FortiOS Galaxy Collection:

    ansible-galaxy collection install fortinet.fortiflexvm
    Note

    You can also choose another Galaxy version to match your FortiFlex device. See the FortiFlexVM Galaxy Versions and Release Notes for more recently released collections and install the ones mark latest for your devices.

  4. Generate an API token (username and password) for FortiFlex. See FortiFlex API.

Modules included in the Ansible Collection allow you to:

Additional Ansible Collection information in this section includes:

Ansible Collection

The FortiFlex Ansible Collection can be used to run playbooks to interact with FortiFlex. The FortiFlex Ansible Collection can be found on GitHub and Ansible Galaxy.

Note

You can get support from the Fortinet Inc. Technical Assistance Center or from the community engineering team by filing an issue in the GitHub issues page. For support with common Ansible issues, you can get support from the Ansible community.

Before you can begin to use the Ansible Collection, you must:

  1. Install Python3.

  2. Install Ansible.

    Note

    The Ansible core version 2.9.0 and later is required.

  3. Install the latest FortiOS Galaxy Collection:

    ansible-galaxy collection install fortinet.fortiflexvm
    Note

    You can also choose another Galaxy version to match your FortiFlex device. See the FortiFlexVM Galaxy Versions and Release Notes for more recently released collections and install the ones mark latest for your devices.

  4. Generate an API token (username and password) for FortiFlex. See FortiFlex API.

Modules included in the Ansible Collection allow you to:

Additional Ansible Collection information in this section includes: