Minor bug fixes - 5 (#61462)

pull/61491/head
Miguel Angel Muñoz González 5 years ago committed by Nilashish Chakraborty
parent 59ab4d9307
commit a1d997cacb

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_ips_urlfilter_dns module: fortios_system_ips_urlfilter_dns
short_description: Configure IPS URL filter DNS servers in Fortinet's FortiOS and FortiGate. short_description: Configure IPS URL filter DNS servers in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and ips_urlfilter_dns category. user to set and modify system feature and ips_urlfilter_dns category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -271,7 +272,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -293,6 +294,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_ips_urlfilter_dns6 module: fortios_system_ips_urlfilter_dns6
short_description: Configure IPS URL filter IPv6 DNS servers in Fortinet's FortiOS and FortiGate. short_description: Configure IPS URL filter IPv6 DNS servers in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and ips_urlfilter_dns6 category. user to set and modify system feature and ips_urlfilter_dns6 category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -263,7 +264,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -283,6 +284,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_ipv6_neighbor_cache module: fortios_system_ipv6_neighbor_cache
short_description: Configure IPv6 neighbor cache table in Fortinet's FortiOS and FortiGate. short_description: Configure IPv6 neighbor cache table in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and ipv6_neighbor_cache category. user to set and modify system feature and ipv6_neighbor_cache category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -271,7 +272,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -292,6 +293,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_ipv6_tunnel module: fortios_system_ipv6_tunnel
short_description: Configure IPv6/IPv4 in IPv6 tunnel in Fortinet's FortiOS and FortiGate. short_description: Configure IPv6/IPv4 in IPv6 tunnel in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and ipv6_tunnel category. user to set and modify system feature and ipv6_tunnel category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -271,7 +272,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -292,6 +293,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_link_monitor module: fortios_system_link_monitor
short_description: Configure Link Health Monitor in Fortinet's FortiOS and FortiGate. short_description: Configure Link Health Monitor in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and link_monitor category. user to set and modify system feature and link_monitor category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -94,7 +95,7 @@ options:
- ipv6 - ipv6
failtime: failtime:
description: description:
- Number of retry attempts before the server is considered down (1 - 10, default = 5) - Number of retry attempts before the server is considered down (1 - 10)
type: int type: int
gateway_ip: gateway_ip:
description: description:
@ -122,7 +123,7 @@ options:
type: str type: str
interval: interval:
description: description:
- Detection interval (1 - 3600 sec, default = 5). - Detection interval (1 - 3600 sec).
type: int type: int
name: name:
description: description:
@ -154,7 +155,7 @@ options:
- ping6 - ping6
recoverytime: recoverytime:
description: description:
- Number of successful responses received before server is considered recovered (1 - 10, default = 5). - Number of successful responses received before server is considered recovered (1 - 10).
type: int type: int
security_mode: security_mode:
description: description:
@ -402,7 +403,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -452,6 +453,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_mac_address_table module: fortios_system_mac_address_table
short_description: Configure MAC address tables in Fortinet's FortiOS and FortiGate. short_description: Configure MAC address tables in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and mac_address_table category. user to set and modify system feature and mac_address_table category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -265,7 +266,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -285,6 +286,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_management_tunnel module: fortios_system_management_tunnel
short_description: Management tunnel configuration in Fortinet's FortiOS and FortiGate. short_description: Management tunnel configuration in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and management_tunnel category. user to set and modify system feature and management_tunnel category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -288,7 +288,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -316,6 +316,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -27,7 +27,7 @@ module: fortios_system_mobile_tunnel
short_description: Configure Mobile tunnels, an implementation of Network Mobility (NEMO) extensions for Mobile IPv4 RFC5177 in Fortinet's FortiOS and short_description: Configure Mobile tunnels, an implementation of Network Mobility (NEMO) extensions for Mobile IPv4 RFC5177 in Fortinet's FortiOS and
FortiGate. FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and mobile_tunnel category. user to set and modify system feature and mobile_tunnel category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -77,6 +77,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -102,7 +103,7 @@ options:
type: str type: str
lifetime: lifetime:
description: description:
- NMMO HA registration request lifetime (180 - 65535 sec, default = 65535). - NMMO HA registration request lifetime (180 - 65535 sec).
type: int type: int
n_mhae_key: n_mhae_key:
description: description:
@ -117,7 +118,7 @@ options:
- base64 - base64
n_mhae_spi: n_mhae_spi:
description: description:
- "NEMO authentication SPI (default: 256)." - "NEMO authentication SPI ."
type: int type: int
name: name:
description: description:
@ -144,15 +145,15 @@ options:
type: str type: str
reg_interval: reg_interval:
description: description:
- NMMO HA registration interval (5 - 300, default = 5). - NMMO HA registration interval (5 - 300).
type: int type: int
reg_retry: reg_retry:
description: description:
- Maximum number of NMMO HA registration retries (1 to 30, default = 3). - Maximum number of NMMO HA registration retries (1 to 30).
type: int type: int
renew_interval: renew_interval:
description: description:
- Time before lifetime expiraton to send NMMO HA re-registration (5 - 60, default = 60). - Time before lifetime expiraton to send NMMO HA re-registration (5 - 60).
type: int type: int
roaming_interface: roaming_interface:
description: description:
@ -358,7 +359,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -399,6 +400,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_nat64 module: fortios_system_nat64
short_description: Configure NAT64 in Fortinet's FortiOS and FortiGate. short_description: Configure NAT64 in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and nat64 category. user to set and modify system feature and nat64 category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -80,7 +80,7 @@ options:
suboptions: suboptions:
always_synthesize_aaaa_record: always_synthesize_aaaa_record:
description: description:
- Enable/disable AAAA record synthesis (default = enable). - Enable/disable AAAA record synthesis .
type: str type: str
choices: choices:
- enable - enable
@ -101,7 +101,7 @@ options:
- disable - disable
nat64_prefix: nat64_prefix:
description: description:
- "NAT64 prefix must be ::/96 (default = 64:ff9b::/96)." - "NAT64 prefix must be ::/96 ."
type: str type: str
secondary_prefix: secondary_prefix:
description: description:
@ -126,7 +126,7 @@ options:
- disable - disable
status: status:
description: description:
- Enable/disable NAT64 (default = disable). - Enable/disable NAT64 .
type: str type: str
choices: choices:
- enable - enable
@ -298,7 +298,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -329,6 +329,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_nd_proxy module: fortios_system_nd_proxy
short_description: Configure IPv6 neighbor discovery proxy (RFC4389) in Fortinet's FortiOS and FortiGate. short_description: Configure IPv6 neighbor discovery proxy (RFC4389) in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and nd_proxy category. user to set and modify system feature and nd_proxy category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -253,7 +253,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -274,6 +274,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_netflow module: fortios_system_netflow
short_description: Configure NetFlow in Fortinet's FortiOS and FortiGate. short_description: Configure NetFlow in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and netflow category. user to set and modify system feature and netflow category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -80,7 +80,7 @@ options:
suboptions: suboptions:
active_flow_timeout: active_flow_timeout:
description: description:
- Timeout to report active flows (1 - 60 min, default = 30). - Timeout to report active flows (1 - 60 min).
type: int type: int
collector_ip: collector_ip:
description: description:
@ -92,7 +92,7 @@ options:
type: int type: int
inactive_flow_timeout: inactive_flow_timeout:
description: description:
- Timeout for periodic report of finished flows (10 - 600 sec, default = 15). - Timeout for periodic report of finished flows (10 - 600 sec).
type: int type: int
source_ip: source_ip:
description: description:
@ -104,7 +104,7 @@ options:
type: int type: int
template_tx_timeout: template_tx_timeout:
description: description:
- Timeout for periodic template flowset transmission (1 - 1440 min, default = 30). - Timeout for periodic template flowset transmission (1 - 1440 min).
type: int type: int
''' '''
@ -270,7 +270,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -292,6 +292,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_network_visibility module: fortios_system_network_visibility
short_description: Configure network visibility settings in Fortinet's FortiOS and FortiGate. short_description: Configure network visibility settings in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and network_visibility category. user to set and modify system feature and network_visibility category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -276,7 +276,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -301,6 +301,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_ntp module: fortios_system_ntp
short_description: Configure system NTP information in Fortinet's FortiOS and FortiGate. short_description: Configure system NTP information in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and ntp category. user to set and modify system feature and ntp category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -331,7 +331,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -370,6 +370,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_object_tagging module: fortios_system_object_tagging
short_description: Configure object tagging in Fortinet's FortiOS and FortiGate. short_description: Configure object tagging in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and object_tagging category. user to set and modify system feature and object_tagging category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -310,7 +311,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -341,6 +342,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_password_policy module: fortios_system_password_policy
short_description: Configure password policy for locally defined administrator passwords and IPsec VPN pre-shared keys in Fortinet's FortiOS and FortiGate. short_description: Configure password policy for locally defined administrator passwords and IPsec VPN pre-shared keys in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and password_policy category. user to set and modify system feature and password_policy category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -94,7 +94,7 @@ options:
- disable - disable
expire_day: expire_day:
description: description:
- Number of days after which passwords expire (1 - 999 days, default = 90). - Number of days after which passwords expire (1 - 999 days).
type: int type: int
expire_status: expire_status:
description: description:
@ -105,23 +105,23 @@ options:
- disable - disable
min_lower_case_letter: min_lower_case_letter:
description: description:
- Minimum number of lowercase characters in password (0 - 128, default = 0). - Minimum number of lowercase characters in password (0 - 128).
type: int type: int
min_non_alphanumeric: min_non_alphanumeric:
description: description:
- Minimum number of non-alphanumeric characters in password (0 - 128, default = 0). - Minimum number of non-alphanumeric characters in password (0 - 128).
type: int type: int
min_number: min_number:
description: description:
- Minimum number of numeric characters in password (0 - 128, default = 0). - Minimum number of numeric characters in password (0 - 128).
type: int type: int
min_upper_case_letter: min_upper_case_letter:
description: description:
- Minimum number of uppercase characters in password (0 - 128, default = 0). - Minimum number of uppercase characters in password (0 - 128).
type: int type: int
minimum_length: minimum_length:
description: description:
- Minimum password length (8 - 128, default = 8). - Minimum password length (8 - 128).
type: int type: int
reuse_password: reuse_password:
description: description:
@ -306,7 +306,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -337,6 +337,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_password_policy_guest_admin module: fortios_system_password_policy_guest_admin
short_description: Configure the password policy for guest administrators in Fortinet's FortiOS and FortiGate. short_description: Configure the password policy for guest administrators in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and password_policy_guest_admin category. user to set and modify system feature and password_policy_guest_admin category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -93,7 +93,7 @@ options:
- disable - disable
expire_day: expire_day:
description: description:
- Number of days after which passwords expire (1 - 999 days, default = 90). - Number of days after which passwords expire (1 - 999 days).
type: int type: int
expire_status: expire_status:
description: description:
@ -104,23 +104,23 @@ options:
- disable - disable
min_lower_case_letter: min_lower_case_letter:
description: description:
- Minimum number of lowercase characters in password (0 - 128, default = 0). - Minimum number of lowercase characters in password (0 - 128).
type: int type: int
min_non_alphanumeric: min_non_alphanumeric:
description: description:
- Minimum number of non-alphanumeric characters in password (0 - 128, default = 0). - Minimum number of non-alphanumeric characters in password (0 - 128).
type: int type: int
min_number: min_number:
description: description:
- Minimum number of numeric characters in password (0 - 128, default = 0). - Minimum number of numeric characters in password (0 - 128).
type: int type: int
min_upper_case_letter: min_upper_case_letter:
description: description:
- Minimum number of uppercase characters in password (0 - 128, default = 0). - Minimum number of uppercase characters in password (0 - 128).
type: int type: int
minimum_length: minimum_length:
description: description:
- Minimum password length (8 - 128, default = 8). - Minimum password length (8 - 128).
type: int type: int
reuse_password: reuse_password:
description: description:
@ -305,7 +305,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -336,6 +336,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_pppoe_interface module: fortios_system_pppoe_interface
short_description: Configure the PPPoE interfaces in Fortinet's FortiOS and FortiGate. short_description: Configure the PPPoE interfaces in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and pppoe_interface category. user to set and modify system feature and pppoe_interface category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -131,11 +132,11 @@ options:
- disable - disable
lcp_echo_interval: lcp_echo_interval:
description: description:
- PPPoE LCP echo interval in (0-4294967295 sec, default = 5). - PPPoE LCP echo interval in (0-4294967295 sec).
type: int type: int
lcp_max_echo_fails: lcp_max_echo_fails:
description: description:
- Maximum missed LCP echo messages before disconnect (0-4294967295, default = 3). - Maximum missed LCP echo messages before disconnect (0-4294967295).
type: int type: int
name: name:
description: description:
@ -350,7 +351,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -388,6 +389,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_probe_response module: fortios_system_probe_response
short_description: Configure system probe response in Fortinet's FortiOS and FortiGate. short_description: Configure system probe response in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and probe_response category. user to set and modify system feature and probe_response category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -281,7 +281,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -306,6 +306,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_proxy_arp module: fortios_system_proxy_arp
short_description: Configure proxy-ARP in Fortinet's FortiOS and FortiGate. short_description: Configure proxy-ARP in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and proxy_arp category. user to set and modify system feature and proxy_arp category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -271,7 +272,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -292,6 +293,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_admin module: fortios_system_replacemsg_admin
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and admin category. user to set and modify system_replacemsg feature and admin category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_alertmail module: fortios_system_replacemsg_alertmail
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and alertmail category. user to set and modify system_replacemsg feature and alertmail category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_auth module: fortios_system_replacemsg_auth
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and auth category. user to set and modify system_replacemsg feature and auth category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_device_detection_portal module: fortios_system_replacemsg_device_detection_portal
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and device_detection_portal category. user to set and modify system_replacemsg feature and device_detection_portal category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_ec module: fortios_system_replacemsg_ec
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and ec category. user to set and modify system_replacemsg feature and ec category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_fortiguard_wf module: fortios_system_replacemsg_fortiguard_wf
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and fortiguard_wf category. user to set and modify system_replacemsg feature and fortiguard_wf category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_ftp module: fortios_system_replacemsg_ftp
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and ftp category. user to set and modify system_replacemsg feature and ftp category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_group module: fortios_system_replacemsg_group
short_description: Configure replacement message groups in Fortinet's FortiOS and FortiGate. short_description: Configure replacement message groups in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and replacemsg_group category. user to set and modify system feature and replacemsg_group category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -924,7 +925,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -1126,6 +1127,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_http module: fortios_system_replacemsg_http
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and http category. user to set and modify system_replacemsg feature and http category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_icap module: fortios_system_replacemsg_icap
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and icap category. user to set and modify system_replacemsg feature and icap category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_image module: fortios_system_replacemsg_image
short_description: Configure replacement message images in Fortinet's FortiOS and FortiGate. short_description: Configure replacement message images in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and replacemsg_image category. user to set and modify system feature and replacemsg_image category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -270,7 +271,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -292,6 +293,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_mail module: fortios_system_replacemsg_mail
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and mail category. user to set and modify system_replacemsg feature and mail category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_nac_quar module: fortios_system_replacemsg_nac_quar
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and nac_quar category. user to set and modify system_replacemsg feature and nac_quar category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_nntp module: fortios_system_replacemsg_nntp
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and nntp category. user to set and modify system_replacemsg feature and nntp category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_spam module: fortios_system_replacemsg_spam
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and spam category. user to set and modify system_replacemsg feature and spam category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_sslvpn module: fortios_system_replacemsg_sslvpn
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and sslvpn category. user to set and modify system_replacemsg feature and sslvpn category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_traffic_quota module: fortios_system_replacemsg_traffic_quota
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and traffic_quota category. user to set and modify system_replacemsg feature and traffic_quota category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_utm module: fortios_system_replacemsg_utm
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and utm category. user to set and modify system_replacemsg feature and utm category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_replacemsg_webproxy module: fortios_system_replacemsg_webproxy
short_description: Replacement messages in Fortinet's FortiOS and FortiGate. short_description: Replacement messages in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system_replacemsg feature and webproxy category. user to set and modify system_replacemsg feature and webproxy category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -76,6 +76,7 @@ options:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
type: str type: str
required: true
choices: choices:
- present - present
- absent - absent
@ -279,7 +280,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -303,6 +304,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -24,9 +24,9 @@ ANSIBLE_METADATA = {'status': ['preview'],
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: fortios_system_resource_limits module: fortios_system_resource_limits
short_description: Configure resource limits in Fortinet's FortiOS (FOS) and FortiGate. short_description: Configure resource limits in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and resource_limits category. user to set and modify system feature and resource_limits category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -328,7 +328,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -361,7 +361,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI. # legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
access_key: access_key:
description: description:
- AWS access key ID. - AWS access key ID.
@ -492,7 +505,12 @@ def underscore_to_hyphen(data):
def system_sdn_connector(data, fos): def system_sdn_connector(data, fos):
vdom = data['vdom'] vdom = data['vdom']
state = data['state'] if 'state' in data and data['state']:
state = data['state']
elif 'state' in data['system_sdn_connector'] and data['system_sdn_connector']:
state = data['system_sdn_connector']['state']
else:
state = True
system_sdn_connector_data = data['system_sdn_connector'] system_sdn_connector_data = data['system_sdn_connector']
filtered_data = underscore_to_hyphen(filter_system_sdn_connector_data(system_sdn_connector_data)) filtered_data = underscore_to_hyphen(filter_system_sdn_connector_data(system_sdn_connector_data))
@ -532,11 +550,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"system_sdn_connector": { "system_sdn_connector": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"access_key": {"required": False, "type": "str"}, "access_key": {"required": False, "type": "str"},
"azure_region": {"required": False, "type": "str", "azure_region": {"required": False, "type": "str",
"choices": ["global", "china", "germany", "choices": ["global", "china", "germany",

@ -29,7 +29,7 @@ description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and session_helper category. user to set and modify system feature and session_helper category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.4 Tested with FOS v6.0.5
version_added: "2.9" version_added: "2.9"
author: author:
- Miguel Angel Munoz (@mamunozgonzalez) - Miguel Angel Munoz (@mamunozgonzalez)

@ -26,7 +26,7 @@ DOCUMENTATION = '''
module: fortios_system_session_ttl module: fortios_system_session_ttl
short_description: Configure global session TTL timers for this FortiGate in Fortinet's FortiOS and FortiGate. short_description: Configure global session TTL timers for this FortiGate in Fortinet's FortiOS and FortiGate.
description: description:
- This module is able to configure a FortiGate or FortiOS device by allowing the - This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify system feature and session_ttl category. user to set and modify system feature and session_ttl category.
Examples include all parameters and values need to be adjusted to datasources before usage. Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5 Tested with FOS v6.0.5
@ -271,7 +271,7 @@ def main():
fields = { fields = {
"host": {"required": False, "type": "str"}, "host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"}, "username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "no_log": True}, "password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
@ -295,6 +295,7 @@ def main():
module = AnsibleModule(argument_spec=fields, module = AnsibleModule(argument_spec=fields,
supports_check_mode=False) supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \ legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \ 'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None 'password' in module.params and module.params['password'] is not None

@ -80,12 +80,12 @@ options:
suboptions: suboptions:
collector_ip: collector_ip:
description: description:
- IP address of the sFlow collector that sFlow agents added to interfaces in this VDOM send sFlow datagrams to (default = 0.0.0.0). - IP address of the sFlow collector that sFlow agents added to interfaces in this VDOM send sFlow datagrams to .
type: str type: str
collector_port: collector_port:
description: description:
- UDP port number used for sending sFlow datagrams (configure only if required by your sFlow collector or your network configuration) (0 - - UDP port number used for sending sFlow datagrams (configure only if required by your sFlow collector or your network configuration) (0 -
65535, default = 6343). 65535).
type: int type: int
source_ip: source_ip:
description: description:

@ -203,7 +203,7 @@ options:
type: str type: str
query_v1_port: query_v1_port:
description: description:
- SNMP v1 query port (default = 161). - SNMP v1 query port .
type: int type: int
query_v1_status: query_v1_status:
description: description:
@ -214,7 +214,7 @@ options:
- disable - disable
query_v2c_port: query_v2c_port:
description: description:
- SNMP v2c query port (default = 161). - SNMP v2c query port .
type: int type: int
query_v2c_status: query_v2c_status:
description: description:
@ -232,11 +232,11 @@ options:
- disable - disable
trap_v1_lport: trap_v1_lport:
description: description:
- SNMP v1 trap local port (default = 162). - SNMP v1 trap local port .
type: int type: int
trap_v1_rport: trap_v1_rport:
description: description:
- SNMP v1 trap remote port (default = 162). - SNMP v1 trap remote port .
type: int type: int
trap_v1_status: trap_v1_status:
description: description:
@ -247,11 +247,11 @@ options:
- disable - disable
trap_v2c_lport: trap_v2c_lport:
description: description:
- SNMP v2c trap local port (default = 162). - SNMP v2c trap local port .
type: int type: int
trap_v2c_rport: trap_v2c_rport:
description: description:
- SNMP v2c trap remote port (default = 162). - SNMP v2c trap remote port .
type: int type: int
trap_v2c_status: trap_v2c_status:
description: description:

@ -179,7 +179,7 @@ options:
- disable - disable
query_port: query_port:
description: description:
- SNMPv3 query port (default = 161). - SNMPv3 query port .
type: int type: int
security_level: security_level:
description: description:
@ -206,11 +206,11 @@ options:
- disable - disable
trap_lport: trap_lport:
description: description:
- SNMPv3 local trap port (default = 162). - SNMPv3 local trap port .
type: int type: int
trap_rport: trap_rport:
description: description:
- SNMPv3 trap remote port (default = 162). - SNMPv3 trap remote port .
type: int type: int
trap_status: trap_status:
description: description:

@ -124,14 +124,14 @@ options:
- disable - disable
usage: usage:
description: description:
- Use hard disk for logging or WAN Optimization (default = log). - Use hard disk for logging or WAN Optimization .
type: str type: str
choices: choices:
- log - log
- wanopt - wanopt
wanopt_mode: wanopt_mode:
description: description:
- WAN Optimization mode (default = mix). - WAN Optimization mode .
type: str type: str
choices: choices:
- mix - mix

@ -93,7 +93,7 @@ options:
type: int type: int
priority: priority:
description: description:
- ToS based priority level to low, medium or high (these priorities match firewall traffic shaping priorities) (default = medium). - ToS based priority level to low, medium or high (these priorities match firewall traffic shaping priorities) .
type: str type: str
choices: choices:
- low - low
@ -102,7 +102,7 @@ options:
tos: tos:
description: description:
- "Value of the ToS byte in the IP datagram header (0-15, 8: minimize delay, 4: maximize throughput, 2: maximize reliability, 1: minimize - "Value of the ToS byte in the IP datagram header (0-15, 8: minimize delay, 4: maximize throughput, 2: maximize reliability, 1: minimize
monetary cost, and 0: default service)." monetary cost, and 0: )."
type: int type: int
''' '''

@ -76,8 +76,10 @@ options:
state: state:
description: description:
- Indicates whether to create or remove the object. - Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str type: str
required: true required: false
choices: choices:
- present - present
- absent - absent
@ -88,6 +90,17 @@ options:
default: null default: null
type: dict type: dict
suboptions: suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
name: name:
description: description:
- VDOM name. - VDOM name.
@ -238,7 +251,12 @@ def underscore_to_hyphen(data):
def system_vdom(data, fos): def system_vdom(data, fos):
vdom = data['vdom'] vdom = data['vdom']
state = data['state'] if 'state' in data and data['state']:
state = data['state']
elif 'state' in data['system_vdom'] and data['system_vdom']:
state = data['system_vdom']['state']
else:
state = True
system_vdom_data = data['system_vdom'] system_vdom_data = data['system_vdom']
filtered_data = underscore_to_hyphen(filter_system_vdom_data(system_vdom_data)) filtered_data = underscore_to_hyphen(filter_system_vdom_data(system_vdom_data))
@ -278,11 +296,13 @@ def main():
"vdom": {"required": False, "type": "str", "default": "root"}, "vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True}, "https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True}, "ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": True, "type": "str", "state": {"required": False, "type": "str",
"choices": ["present", "absent"]}, "choices": ["present", "absent"]},
"system_vdom": { "system_vdom": {
"required": False, "type": "dict", "default": None, "required": False, "type": "dict", "default": None,
"options": { "options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"name": {"required": True, "type": "str"}, "name": {"required": True, "type": "str"},
"short_name": {"required": False, "type": "str"}, "short_name": {"required": False, "type": "str"},
"temporary": {"required": False, "type": "int"}, "temporary": {"required": False, "type": "int"},

Loading…
Cancel
Save