fortinet.fortios.fortios_system_gre_tunnel – Configure GRE tunnel in Fortinet’s FortiOS and FortiGate.
This plugin is part of the fortinet.fortios collection (version 2.1.3).
You might already have this collection installed if you are using the
It is not included in
To check whether it is installed, run
ansible-galaxy collection list.
To install it, use:
ansible-galaxy collection install fortinet.fortios.
To use it in a playbook, specify:
New in version 2.10: of fortinet.fortios
This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify system feature and gre_tunnel category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.0.0
The below requirements are needed on the host that executes this module.
- collections: - fortinet.fortios connection: httpapi hosts: fortigate01 vars: ansible_httpapi_port: 443 ansible_httpapi_use_ssl: true ansible_httpapi_validate_certs: false vdom: root tasks: - name: fortios_system_gre_tunnel fortios_system_gre_tunnel: vdom: root state: present system_gre_tunnel: checksum_reception: disable checksum_transmission: disable diffservcode: '000000' dscp_copying: disable interface: port3 ip_version: '4' keepalive_failtimes: 10 keepalive_interval: 0 key_inbound: 0 key_outbound: 0 local_gw: 18.104.22.168 local_gw6: '::' name: gretunnel1 remote_gw: 22.214.171.124 remote_gw6: '::' sequence_number_reception: disable sequence_number_transmission: enable
Common return values are documented here, the following are the fields unique to this module: