|
|
|
@ -26,7 +26,7 @@ DOCUMENTATION = '''
|
|
|
|
|
module: fortios_system_fortiguard
|
|
|
|
|
short_description: Configure FortiGuard services in Fortinet's FortiOS and FortiGate.
|
|
|
|
|
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 fortiguard category.
|
|
|
|
|
Examples include all parameters and values need to be adjusted to datasources before usage.
|
|
|
|
|
Tested with FOS v6.0.5
|
|
|
|
@ -111,7 +111,7 @@ options:
|
|
|
|
|
type: int
|
|
|
|
|
antispam_timeout:
|
|
|
|
|
description:
|
|
|
|
|
- Antispam query time out (1 - 30 sec, default = 7).
|
|
|
|
|
- Antispam query time out (1 - 30 sec).
|
|
|
|
|
type: int
|
|
|
|
|
auto_join_forticloud:
|
|
|
|
|
description:
|
|
|
|
@ -141,11 +141,11 @@ options:
|
|
|
|
|
- disable
|
|
|
|
|
outbreak_prevention_cache_mpercent:
|
|
|
|
|
description:
|
|
|
|
|
- Maximum percent of memory FortiGuard Virus Outbreak Prevention cache can use (1 - 15%, default = 2).
|
|
|
|
|
- Maximum percent of memory FortiGuard Virus Outbreak Prevention cache can use (1 - 15%).
|
|
|
|
|
type: int
|
|
|
|
|
outbreak_prevention_cache_ttl:
|
|
|
|
|
description:
|
|
|
|
|
- Time-to-live for FortiGuard Virus Outbreak Prevention cache entries (300 - 86400 sec, default = 300).
|
|
|
|
|
- Time-to-live for FortiGuard Virus Outbreak Prevention cache entries (300 - 86400 sec).
|
|
|
|
|
type: int
|
|
|
|
|
outbreak_prevention_expiration:
|
|
|
|
|
description:
|
|
|
|
@ -164,7 +164,7 @@ options:
|
|
|
|
|
type: int
|
|
|
|
|
outbreak_prevention_timeout:
|
|
|
|
|
description:
|
|
|
|
|
- FortiGuard Virus Outbreak Prevention time out (1 - 30 sec, default = 7).
|
|
|
|
|
- FortiGuard Virus Outbreak Prevention time out (1 - 30 sec).
|
|
|
|
|
type: int
|
|
|
|
|
port:
|
|
|
|
|
description:
|
|
|
|
@ -229,7 +229,7 @@ options:
|
|
|
|
|
type: int
|
|
|
|
|
webfilter_timeout:
|
|
|
|
|
description:
|
|
|
|
|
- Web filter query time out (1 - 30 sec, default = 7).
|
|
|
|
|
- Web filter query time out (1 - 30 sec).
|
|
|
|
|
type: int
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
@ -427,7 +427,7 @@ def main():
|
|
|
|
|
fields = {
|
|
|
|
|
"host": {"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"},
|
|
|
|
|
"https": {"required": False, "type": "bool", "default": True},
|
|
|
|
|
"ssl_verify": {"required": False, "type": "bool", "default": True},
|
|
|
|
@ -482,6 +482,7 @@ def main():
|
|
|
|
|
module = AnsibleModule(argument_spec=fields,
|
|
|
|
|
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 \
|
|
|
|
|
'username' in module.params and module.params['username'] is not None and \
|
|
|
|
|
'password' in module.params and module.params['password'] is not None
|
|
|
|
|