fmgr_system_csf – Add this device to a Security Fabric or set up a new Security Fabric on this device.
Added in version 2.3.0.
Warning
Starting in version 3.0.0, all input arguments will be named using the underscore naming convention (snake_case).
Argument name before 3.0.0:
var-name
,var name
,var.name
New argument name starting in 3.0.0:
var_name
FortiManager Ansible v2.4+ supports both previous argument name and new underscore name. You will receive deprecation warnings if you keep using the previous argument name. You can ignore the warning by setting deprecation_warnings=False in ansible.cfg.
Synopsis
This module is able to configure a FortiManager device.
Examples include all parameters and values need to be adjusted to data sources before usage.
Tested with FortiManager v7.x.
Requirements
The below requirements are needed on the host that executes this module.
ansible>=2.15.0
FortiManager Version Compatibility
Supported Version Ranges: v7.4.1 -> latest
Parameters
- access_token -The token to access FortiManager without using username and password. type: str required: false
- bypass_validation - Only set to True when module schema diffs with FortiManager API structure, module continues to execute without validating parameters. type: bool required: false default: False
- enable_log - Enable/Disable logging for task. type: bool required: false default: False
- forticloud_access_token - Access token of forticloud managed API users, this option is available with FortiManager later than 6.4.0. type: str required: false
- proposed_method - The overridden method for the underlying Json RPC request. type: str required: false choices: set, update, add
- rc_succeeded - The rc codes list with which the conditions to succeed will be overriden. type: list required: false
- rc_failed - The rc codes list with which the conditions to fail will be overriden. type: list required: false
- workspace_locking_adom - Acquire the workspace lock if FortiManager is running in workspace mode. type: str required: false choices: global, custom adom including root
- workspace_locking_timeout - The maximum time in seconds to wait for other users to release workspace lock. type: integer required: false default: 300
- system_csf - Add this device to a Security Fabric or set up a new Security Fabric on this device. type: dict
- accept_auth_by_cert (Alias name: accept-auth-by-cert) Accept connections with unknown certificates and ask admin for approval. type: str choices: [disable, enable] default: enable more...
- authorization_request_type (Alias name: authorization-request-type) Authorization request type. type: str choices: [certificate, serial] default: certificate more...
- certificate Certificate. type: str default: Fortinet_Local more...
- configuration_sync (Alias name: configuration-sync) Configuration sync mode. type: str choices: [default, local] default: default more...
- downstream_access (Alias name: downstream-access) Enable/disable downstream device access to this device's configuration and data. type: str choices: [disable, enable] default: disable more...
- downstream_accprofile (Alias name: downstream-accprofile) Default access profile for requests from downstream devices. type: str more...
- fabric_connector (Alias name: fabric-connector) Fabric connector. type: list more...
- fabric_object_unification (Alias name: fabric-object-unification) Fabric cmdb object unification. type: str choices: [local, default] default: default more...
- fabric_workers (Alias name: fabric-workers) Number of worker processes for security fabric daemon. type: int default: 2 more...
- file_mgmt (Alias name: file-mgmt) Enable/disable security fabric daemon file management. type: str choices: [disable, enable] default: enable more...
- file_quota (Alias name: file-quota) Maximum amount of memory that can be used by the daemon files (in bytes). type: int default: 0 more...
- file_quota_warning (Alias name: file-quota-warning) Warn when the set percentage of quota has been used. type: int default: 90 more...
- fixed_key (Alias name: fixed-key) Auto-generated fixed key used when this device is the root. type: list more...
- forticloud_account_enforcement (Alias name: forticloud-account-enforcement) Fabric forticloud account unification. type: str choices: [disable, enable] default: enable more...
- group_name (Alias name: group-name) Security fabric group name. type: str more...
- group_password (Alias name: group-password) Security fabric group password. type: list more...
- log_unification (Alias name: log-unification) Enable/disable broadcast of discovery messages for log unification. type: str choices: [disable, enable] default: enable more...
- saml_configuration_sync (Alias name: saml-configuration-sync) Saml setting configuration synchronization. type: str choices: [local, default] default: default more...
- status Enable/disable security fabric. type: str choices: [disable, enable] default: disable more...
- trusted_list (Alias name: trusted-list) Trusted list. type: list
more...
- action Security fabric authorization action. type: str choices: [accept, deny] default: accept more...
- authorization_type (Alias name: authorization-type) Authorization type. type: str choices: [serial, certificate] default: serial more...
- certificate Certificate. type: str more...
- downstream_authorization (Alias name: downstream-authorization) Trust authorizations by this node's administrator. type: str choices: [disable, enable] default: disable more...
- ha_members (Alias name: ha-members) Ha members. type: str more...
- index Index of the downstream in tree. type: int default: 0 more...
- name Name. type: str more...
- serial Serial. type: str more...
- upstream Ip/fqdn of the fortigate upstream from this fortigate in the security fabric. type: str more...
- upstream_port (Alias name: upstream-port) The port number to use to communicate with the fortigate upstream from this fortigate in the security fabric (default = 8013). type: int default: 8013 more...
- upstream_confirm (Alias name: upstream-confirm) Upstream authorization confirm. type: str choices: [discover, confirm] default: discover more...
- ssl_protocol (Alias name: ssl-protocol) Set the lowest ssl protocol version for upstream and downstream connections. type: str choices: [follow-global-ssl-protocol, sslv3, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3] default: follow-global-ssl-protocol more...
Notes
Note
Running in workspace locking mode is supported in this FortiManager module, the top level parameters workspace_locking_adom and workspace_locking_timeout help do the work.
To create or update an object, use state: present directive.
To delete an object, use state: absent directive
Normally, running one module can fail when a non-zero rc is returned. you can also override the conditions to fail or succeed with parameters rc_failed and rc_succeeded
Examples
- name: Example playbook (generated based on argument schema)
hosts: fortimanagers
connection: httpapi
vars:
ansible_httpapi_use_ssl: true
ansible_httpapi_validate_certs: false
ansible_httpapi_port: 443
tasks:
- name: Add this device to a Security Fabric or set up a new Security Fabric on this device.
fortinet.fortimanager.fmgr_system_csf:
# bypass_validation: false
workspace_locking_adom: <value in [global, custom adom including root]>
workspace_locking_timeout: 300
# rc_succeeded: [0, -2, -3, ...]
# rc_failed: [-2, -3, ...]
system_csf:
accept_auth_by_cert: <value in [disable, enable]>
authorization_request_type: <value in [certificate, serial]>
certificate: <string>
configuration_sync: <value in [default, local]>
downstream_access: <value in [disable, enable]>
downstream_accprofile: <string>
fabric_connector:
-
accprofile: <string>
configuration_write_access: <value in [disable, enable]>
serial: <string>
fabric_object_unification: <value in [local, default]>
fabric_workers: <integer>
file_mgmt: <value in [disable, enable]>
file_quota: <integer>
file_quota_warning: <integer>
fixed_key: <list or string>
forticloud_account_enforcement: <value in [disable, enable]>
group_name: <string>
group_password: <list or string>
log_unification: <value in [disable, enable]>
saml_configuration_sync: <value in [local, default]>
status: <value in [disable, enable]>
trusted_list:
-
action: <value in [accept, deny]>
authorization_type: <value in [serial, certificate]>
certificate: <string>
downstream_authorization: <value in [disable, enable]>
ha_members: <string>
index: <integer>
name: <string>
serial: <string>
upstream: <string>
upstream_port: <integer>
upstream_confirm: <value in [discover, confirm]>
ssl_protocol: <value in [follow-global-ssl-protocol, sslv3, tlsv1.0, ...]>
Return Values
Common return values are documented: https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values, the following are the fields unique to this module:
- meta - The result of the request.returned: always type: dict
- request_url - The full url requested. returned: always type: str sample: /sys/login/user
- response_code - The status of api request. returned: always type: int sample: 0
- response_data - The data body of the api response. returned: optional type: list or dict
- response_message - The descriptive message of the api response. returned: always type: str sample: OK
- system_information - The information of the target system. returned: always type: dict
- rc - The status the request. returned: always type: int sample: 0
- version_check_warning - Warning if the parameters used in the playbook are not supported by the current FortiManager version. returned: if at least one parameter not supported by the current FortiManager version type: list
Status
This module is not guaranteed to have a backwards compatible interface.