fmgd_wireless_setting – VDOM wireless controller configuration.

Added in version 1.0.0.

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-core>=2.16.0

FortiManager Version Compatibility

Supported Version Ranges: v7.2.6 -> v7.2.12, v7.4.3 -> 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
  • device - The parameter in requested url type: str required: true
  • vdom - The parameter in requested url type: str required: true
  • wireless_setting - VDOM wireless controller configuration. type: dict
    • account_id (Alias name: account-id) Forticloud customer account id. type: str more...
    • country Country or region in which the fortigate is located. type: str choices: [AL, DZ, AR, AM, AU, AT, AZ, BH, BD, BY, BE, BZ, BO, BA, BR, BN, BG, CA, CL, CN, CO, CR, HR, CY, CZ, DK, DO, EC, EG, SV, EE, FI, FR, GE, DE, GR, GT, HN, HK, HU, IS, IN, ID, IR, IE, IL, IT, JM, JP, JO, KZ, KE, KP, KR, KW, LV, LB, LI, LT, LU, MO, MK, MY, MT, MX, MC, MA, NP, NL, AN, NZ, NO, OM, PK, PA, PG, PE, PH, PL, PT, PR, QA, RO, RU, SA, CS, SG, SK, SI, ZA, ES, LK, SE, CH, SY, TW, TH, TT, TN, TR, AE, UA, GB, US, PS, UY, UZ, VE, VN, YE, ZW, NA, BS, VC, KH, MV, AF, NG, TZ, ZM, SN, CI, GH, SD, CM, MW, AO, GA, ML, BJ, MG, TD, BW, LY, RW, MZ, GM, LS, MU, CG, UG, BF, SL, SO, CD, NE, CF, SZ, TG, LR, MR, DJ, RE, RS, ME, IQ, MD, KY, BB, BM, TC, VI, PM, MF, GD, IM, FO, GI, GL, TM, MN, VU, FJ, LA, GU, WF, MH, BT, FM, PF, NI, PY, HT, GY, AW, KN, GF, AS, MP, PW, MM, LC, GP, ET, SR, ZB, CX, DM, MQ, YT, BL, --, TL] more...
    • darrp_optimize (Alias name: darrp-optimize) Time for running distributed automatic radio resource provisioning (darrp) optimizations (0 - 86400 sec, default = 86400, 0 = disable). type: int more...
    • darrp_optimize_schedules (Alias name: darrp-optimize-schedules) Firewall schedules for darrp running time. type: list more...
    • device_holdoff (Alias name: device-holdoff) Lower limit of creation time of device for identification in minutes (0 - 60, default = 5). type: int more...
    • device_idle (Alias name: device-idle) Upper limit of idle time of device for identification in minutes (0 - 14400, default = 1440). type: int more...
    • device_weight (Alias name: device-weight) Upper limit of confidence of device for identification (0 - 255, default = 1, 0 = disable). type: int more...
    • duplicate_ssid (Alias name: duplicate-ssid) Enable/disable allowing virtual access points (vaps) to use the same ssid name in the same vdom. type: str choices: [disable, enable] more...
    • fake_ssid_action (Alias name: fake-ssid-action) Actions taken for detected fake ssid. type: list choices: [log, suppress] more...
    • fapc_compatibility (Alias name: fapc-compatibility) Enable/disable fap-c series compatibility. type: str choices: [disable, enable] more...
    • firmware_provision_on_authorization (Alias name: firmware-provision-on-authorization) Enable/disable automatic provisioning of latest firmware on authorization. type: str choices: [disable, enable] more...
    • offending_ssid (Alias name: offending-ssid) Offending ssid. type: list more...
      • action Actions taken for detected offending ssid. type: list choices: [log, suppress] more...
      • id Id. type: int more...
      • ssid_pattern (Alias name: ssid-pattern) Define offending ssid pattern (case insensitive). type: str more...
    • phishing_ssid_detect (Alias name: phishing-ssid-detect) Enable/disable phishing ssid detection. type: str choices: [disable, enable] more...
    • rolling_wtp_upgrade (Alias name: rolling-wtp-upgrade) Enable/disable rolling wtp upgrade (default = disable). type: str choices: [disable, enable] more...
    • wfa_compatibility (Alias name: wfa-compatibility) Enable/disable wfa compatibility. type: str choices: [disable, enable] 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
  gather_facts: false
  vars:
    ansible_httpapi_use_ssl: true
    ansible_httpapi_validate_certs: false
    ansible_httpapi_port: 443
  tasks:
    - name: VDOM wireless controller configuration.
      fortinet.fmgdevice.fmgd_wireless_setting:
        # bypass_validation: false
        # workspace_locking_adom: <global or your adom name>
        # workspace_locking_timeout: 300
        # rc_succeeded: [0, -2, -3, ...]
        # rc_failed: [-2, -3, ...]
        device: <your own value>
        vdom: <your own value>
        wireless_setting:
          # account_id: <string>
          # country: <value in [AL, DZ, AR, ...]>
          # darrp_optimize: <integer>
          # darrp_optimize_schedules: <list or string>
          # device_holdoff: <integer>
          # device_idle: <integer>
          # device_weight: <integer>
          # duplicate_ssid: <value in [disable, enable]>
          # fake_ssid_action:
          #   - "log"
          #   - "suppress"
          # fapc_compatibility: <value in [disable, enable]>
          # firmware_provision_on_authorization: <value in [disable, enable]>
          # offending_ssid:
          #   - action:
          #       - "log"
          #       - "suppress"
          #     id: <integer>
          #     ssid_pattern: <string>
          # phishing_ssid_detect: <value in [disable, enable]>
          # rolling_wtp_upgrade: <value in [disable, enable]>
          # wfa_compatibility: <value in [disable, enable]>

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.

Authors

  • Xinwei Du (@dux-fortinet)

  • Xing Li (@lix-fortinet)

  • Jie Xue (@JieX19)

  • Link Zheng (@chillancezen)

  • Frank Shen (@fshen01)

  • Hongbin Lu (@fgtdev-hblu)