fmgr_system_global – Global range attributes.

New in version 2.10.

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 v6.0.0.

Requirements

The below requirements are needed on the host that executes this module.

  • ansible>=2.9.0

Parameters

  • 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
  • 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
  • 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
  • system_global - Global range attributes. type: dict
    • admin-lockout-duration - Lockout duration(sec) for administration. type: int default: 60
    • admin-lockout-threshold - Lockout threshold for administration. type: int default: 3
    • adom-mode - ADOM mode. type: str choices: [normal, advanced] default: normal
    • adom-rev-auto-delete - Auto delete features for old ADOM revisions. type: str choices: [disable, by-revisions, by-days] default: by-revisions
    • adom-rev-max-backup-revisions - Maximum number of ADOM revisions to backup. type: int default: 5
    • adom-rev-max-days - Number of days to keep old ADOM revisions. type: int default: 30
    • adom-rev-max-revisions - Maximum number of ADOM revisions to keep. type: int default: 120
    • adom-select - Enable/disable select ADOM after login. type: str choices: [disable, enable] default: enable
    • adom-status - ADOM status. type: str choices: [disable, enable] default: disable
    • clt-cert-req - Require client certificate for GUI login. type: str choices: [disable, enable, optional] default: disable
    • console-output - Console output mode. type: str choices: [standard, more] default: standard
    • country-flag - Country flag Status. type: str choices: [disable, enable] default: enable
    • create-revision - Enable/disable create revision by default. type: str choices: [disable, enable] default: disable
    • daylightsavetime - Enable/disable daylight saving time. type: str choices: [disable, enable] default: enable
    • default-disk-quota - Default disk quota for registered device (MB). type: int default: 1000
    • detect-unregistered-log-device - Detect unregistered logging device from log message. type: str choices: [disable, enable] default: enable
    • device-view-mode - Set devices/groups view mode. type: str choices: [regular, tree] default: regular
    • dh-params - Minimum size of Diffie-Hellman prime for SSH/HTTPS (bits). type: str choices: [1024, 1536, 2048, 3072, 4096, 6144, 8192] default: 2048
    • disable-module - No description for the parameter type: array choices: [fortiview-noc]
    • enc-algorithm - SSL communication encryption algorithms. type: str choices: [low, medium, high] default: high
    • faz-status - FAZ status. type: str choices: [disable, enable] default: disable
    • fgfm-local-cert - set the fgfm local certificate. type: str
    • fgfm-ssl-protocol - set the lowest SSL protocols for fgfmsd. type: str choices: [sslv3, tlsv1.0, tlsv1.1, tlsv1.2] default: tlsv1.2
    • ha-member-auto-grouping - Enable/disable automatically group HA members feature type: str choices: [disable, enable] default: enable
    • hitcount_concurrent - The number of FortiGates that FortiManager polls at one time (10 - 500, default = 100). type: int default: 100
    • hitcount_interval - The interval for getting hit count from managed FortiGate devices, in seconds (60 - 86400, default = 300). type: int default: 300
    • hostname - System hostname. type: str default: FMG-VM64
    • import-ignore-addr-cmt - Enable/Disable import ignore of address comments. type: str choices: [disable, enable] default: disable
    • language - System global language. type: str choices: [english, simch, japanese, korean, spanish, trach] default: english
    • latitude - fmg location latitude type: str
    • ldap-cache-timeout - LDAP browser cache timeout (seconds). type: int default: 86400
    • ldapconntimeout - LDAP connection timeout (msec). type: int default: 60000
    • lock-preempt - Enable/disable ADOM lock override. type: str choices: [disable, enable] default: disable
    • log-checksum - Record log file hash value, timestamp, and authentication code at transmission or rolling. type: str choices: [none, md5, md5-auth] default: none
    • log-forward-cache-size - Log forwarding disk cache size (GB). type: int default: 0
    • longitude - fmg location longitude type: str
    • max-log-forward - Maximum number of log-forward and aggregation settings. type: int default: 5
    • max-running-reports - Maximum number of reports generating at one time. type: int default: 1
    • oftp-ssl-protocol - set the lowest SSL protocols for oftpd. type: str choices: [sslv3, tlsv1.0, tlsv1.1, tlsv1.2] default: tlsv1.2
    • partial-install - Enable/Disable partial install (install some objects). type: str choices: [disable, enable] default: disable
    • partial-install-force - Enable/Disable partial install when devdb is modified. type: str choices: [disable, enable] default: disable
    • partial-install-rev - Enable/Disable auto creating adom revision for partial install. type: str choices: [disable, enable] default: disable
    • perform-improve-by-ha - Enable/Disable performance improvement by distributing tasks to HA slaves. type: str choices: [disable, enable] default: disable
    • policy-hit-count - show policy hit count. type: str choices: [disable, enable] default: disable
    • policy-object-in-dual-pane - show policies and objects in dual pane. type: str choices: [disable, enable] default: disable
    • pre-login-banner - Enable/disable pre-login banner. type: str choices: [disable, enable] default: disable
    • pre-login-banner-message - Pre-login banner message. type: str
    • remoteauthtimeout - Remote authentication (RADIUS/LDAP) timeout (sec). type: int default: 10
    • search-all-adoms - Enable/Disable Search all ADOMs for where-used query. type: str choices: [disable, enable] default: disable
    • ssl-low-encryption - SSL low-grade encryption. type: str choices: [disable, enable] default: disable
    • ssl-protocol - No description for the parameter type: array choices: [tlsv1.2, tlsv1.1, tlsv1.0, sslv3]
    • ssl-static-key-ciphers - Enable/disable SSL static key ciphers. type: str choices: [disable, enable] default: enable
    • task-list-size - Maximum number of completed tasks to keep. type: int default: 2000
    • tftp - Enable/disable TFTP in `exec restore image` command (disabled by default in FIPS mode) type: str choices: [disable, enable] default: disable
    • timezone - Time zone. type: str choices: [00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89] default: 04
    • tunnel-mtu - Maximum transportation unit(68 - 9000). type: int default: 1500
    • usg - Enable/disable Fortiguard server restriction. type: str choices: [disable, enable] default: disable
    • vdom-mirror - VDOM mirror. type: str choices: [disable, enable] default: disable
    • webservice-proto - No description for the parameter type: array choices: [tlsv1.2, tlsv1.1, tlsv1.0, sslv3, sslv2]
    • workflow-max-sessions - Maximum number of workflow sessions per ADOM (minimum 100). type: int default: 500
    • workspace-mode - Set workspace mode (ADOM Locking). type: str choices: [disabled, normal, workflow] default: disabled

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

- hosts: fortimanager-inventory
  collections:
    - fortinet.fortimanager
  connection: httpapi
  vars:
     ansible_httpapi_use_ssl: True
     ansible_httpapi_validate_certs: False
     ansible_httpapi_port: 443
  tasks:
   - name: Global range attributes.
     fmgr_system_global:
        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_global:
           admin-lockout-duration: <value of integer>
           admin-lockout-threshold: <value of integer>
           adom-mode: <value in [normal, advanced]>
           adom-rev-auto-delete: <value in [disable, by-revisions, by-days]>
           adom-rev-max-backup-revisions: <value of integer>
           adom-rev-max-days: <value of integer>
           adom-rev-max-revisions: <value of integer>
           adom-select: <value in [disable, enable]>
           adom-status: <value in [disable, enable]>
           clt-cert-req: <value in [disable, enable, optional]>
           console-output: <value in [standard, more]>
           country-flag: <value in [disable, enable]>
           create-revision: <value in [disable, enable]>
           daylightsavetime: <value in [disable, enable]>
           default-disk-quota: <value of integer>
           detect-unregistered-log-device: <value in [disable, enable]>
           device-view-mode: <value in [regular, tree]>
           dh-params: <value in [1024, 1536, 2048, ...]>
           disable-module:
             - fortiview-noc
           enc-algorithm: <value in [low, medium, high]>
           faz-status: <value in [disable, enable]>
           fgfm-local-cert: <value of string>
           fgfm-ssl-protocol: <value in [sslv3, tlsv1.0, tlsv1.1, ...]>
           ha-member-auto-grouping: <value in [disable, enable]>
           hitcount_concurrent: <value of integer>
           hitcount_interval: <value of integer>
           hostname: <value of string>
           import-ignore-addr-cmt: <value in [disable, enable]>
           language: <value in [english, simch, japanese, ...]>
           latitude: <value of string>
           ldap-cache-timeout: <value of integer>
           ldapconntimeout: <value of integer>
           lock-preempt: <value in [disable, enable]>
           log-checksum: <value in [none, md5, md5-auth]>
           log-forward-cache-size: <value of integer>
           longitude: <value of string>
           max-log-forward: <value of integer>
           max-running-reports: <value of integer>
           oftp-ssl-protocol: <value in [sslv3, tlsv1.0, tlsv1.1, ...]>
           partial-install: <value in [disable, enable]>
           partial-install-force: <value in [disable, enable]>
           partial-install-rev: <value in [disable, enable]>
           perform-improve-by-ha: <value in [disable, enable]>
           policy-hit-count: <value in [disable, enable]>
           policy-object-in-dual-pane: <value in [disable, enable]>
           pre-login-banner: <value in [disable, enable]>
           pre-login-banner-message: <value of string>
           remoteauthtimeout: <value of integer>
           search-all-adoms: <value in [disable, enable]>
           ssl-low-encryption: <value in [disable, enable]>
           ssl-protocol:
             - tlsv1.2
             - tlsv1.1
             - tlsv1.0
             - sslv3
           ssl-static-key-ciphers: <value in [disable, enable]>
           task-list-size: <value of integer>
           tftp: <value in [disable, enable]>
           timezone: <value in [00, 01, 02, ...]>
           tunnel-mtu: <value of integer>
           usg: <value in [disable, enable]>
           vdom-mirror: <value in [disable, enable]>
           webservice-proto:
             - tlsv1.2
             - tlsv1.1
             - tlsv1.0
             - sslv3
             - sslv2
           workflow-max-sessions: <value of integer>
           workspace-mode: <value in [disabled, normal, workflow]>

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:

  • 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_message - The descriptive message of the api response returned: always type: str sample: OK
  • response_data - The data body of the api response returned: optional type: list or dict

Status

  • This module is not guaranteed to have a backwards compatible interface.

Authors

  • Link Zheng (@chillancezen)
  • Jie Xue (@JieX19)
  • Frank Shen (@fshen01)
  • Hongbin Lu (@fgtdev-hblu)

Hint

If you notice any issues in this documentation, you can create a pull request to improve it.