fortinet.fortios.fortios_endpoint_control_settings 模块 – 在 Fortinet 的 FortiOS 和 FortiGate 中配置端点控制设置。

注意

此模块是 fortinet.fortios 集合 (版本 2.3.8) 的一部分。

如果您正在使用 ansible 包,您可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用:ansible-galaxy collection install fortinet.fortios。您需要进一步的要求才能使用此模块,请参阅 要求 以了解详细信息。

要在 playbook 中使用它,请指定:fortinet.fortios.fortios_endpoint_control_settings

fortinet.fortios 2.0.0 中的新增功能

概要

  • 此模块能够通过允许用户设置和修改 endpoint_control 功能和设置类别来配置 FortiGate 或 FortiOS (FOS) 设备。示例包括所有参数和值,都需要在使用前调整为数据源。使用 FOS v6.0.0 进行测试

要求

执行此模块的主机上需要满足以下要求。

  • ansible>=2.15

参数

参数

注释

access_token

字符串

基于令牌的身份验证。从 FortiGate 的 GUI 生成。

enable_log

布尔值

启用/禁用任务的日志记录。

选项

  • false ← (默认)

  • true

endpoint_control_settings

字典

配置端点控制设置。

字符串

用于下载 FortiClient 的自定义 URL。

download_location

字符串

FortiClient 下载位置(FortiGuard 或自定义)。

选项

  • "fortiguard"

  • "custom"

forticlient_avdb_update_interval

整数

FortiClient 防病毒数据库更新之间的时间间隔(0 - 24 小时)。

forticlient_dereg_unsupported_client

字符串

启用/禁用注销不受支持的 FortiClient 端点。

选项

  • "enable"

  • "disable"

forticlient_disconnect_unsupported_client

字符串

启用/禁用断开不受支持的 FortiClient 端点的连接。

选项

  • "enable"

  • "disable"

forticlient_ems_rest_api_call_timeout

整数

FortiClient EMS 调用超时(毫秒)(500 - 30000 毫秒)。

forticlient_keepalive_interval

整数

来自 FortiClient 的两条 KeepAlive 消息之间的间隔(20 - 300 秒)。

forticlient_offline_grace

字符串

启用/禁用脱机注册客户端的宽限期。

选项

  • "enable"

  • "disable"

forticlient_offline_grace_interval

整数

脱机注册的 FortiClient 的宽限期(60 - 600 秒)。

forticlient_reg_key

字符串

FortiClient 注册密钥。

forticlient_reg_key_enforce

字符串

启用/禁用要求或强制执行 FortiClient 注册密钥。

选项

  • "enable"

  • "disable"

forticlient_reg_timeout

整数

FortiClient 注册许可证超时(天,最小 = 1,最大 = 180,0 表示无限)。

forticlient_sys_update_interval

整数

来自 FortiClient 的两条系统更新消息之间的间隔(30 - 1440 分钟)。

forticlient_user_avatar

字符串

启用/禁用上传 FortiClient 用户头像。

选项

  • "enable"

  • "disable"

forticlient_warning_interval

整数

FortiClient 门户警告之间的时间间隔(0 - 24 小时)。

override

字符串

覆盖此 VDOM 的全局 EMS 表。

选项

  • "enable"

  • "disable"

member_path

字符串

要操作的成员属性路径。

如果存在多个属性,则用斜杠字符分隔。

标有 member_path 的参数对于执行成员操作是合法的。

member_state

字符串

在指定的属性路径下添加或删除成员。

指定 member_state 时,将忽略 state 选项。

选项

  • "present"

  • "absent"

vdom

字符串

虚拟域,在先前定义的域中。vdom 是 FortiGate 的虚拟实例,可以配置并用作不同的单元。

默认: "root"

备注

注意

  • 旧版 fortiosapi 已被弃用,httpapi 是运行 playbook 的首选方式

示例

- name: Configure endpoint control settings.
  fortinet.fortios.fortios_endpoint_control_settings:
      vdom: "{{ vdom }}"
      endpoint_control_settings:
          download_custom_link: "<your_own_value>"
          download_location: "fortiguard"
          forticlient_avdb_update_interval: "12"
          forticlient_dereg_unsupported_client: "enable"
          forticlient_disconnect_unsupported_client: "enable"
          forticlient_ems_rest_api_call_timeout: "15000"
          forticlient_keepalive_interval: "150"
          forticlient_offline_grace: "enable"
          forticlient_offline_grace_interval: "300"
          forticlient_reg_key: "<your_own_value>"
          forticlient_reg_key_enforce: "enable"
          forticlient_reg_timeout: "90"
          forticlient_sys_update_interval: "720"
          forticlient_user_avatar: "enable"
          forticlient_warning_interval: "12"
          override: "enable"

返回值

通用返回值在此处记录 此处,以下是此模块独有的字段

描述

build

字符串

FortiGate 镜像的内部版本号

返回:始终

示例: "1547"

http_method

字符串

用于将内容配置到 FortiGate 中的最后一种方法

返回:始终

示例: "PUT"

http_status

字符串

FortiGate 在上次应用操作时给出的最后结果

返回:始终

示例: "200"

mkey

字符串

上次调用 FortiGate 时使用的主键 (id)

返回:成功

示例: "id"

name

字符串

用于满足请求的表名称

返回:始终

示例: "urlfilter"

path

字符串

用于满足请求的表的路径

返回:始终

示例: "webfilter"

revision

字符串

内部修订号

返回:始终

示例: "17.0.2.10658"

serial

字符串

单元的序列号

返回:始终

示例: "FGVMEVYYQT3AB5352"

status

字符串

指示操作的结果

返回:始终

示例: "success"

vdom

字符串

使用的虚拟域

返回:始终

示例: "root"

version

字符串

FortiGate 的版本

返回:始终

示例: "v5.6.3"

作者

  • Link Zheng (@chillancezen)

  • Jie Xue (@JieX19)

  • Hongbin Lu (@fgtdev-hblu)

  • Frank Shen (@frankshen01)

  • Miguel Angel Munoz (@mamunozgonzalez)

  • Nicolas Thomas (@thomnico)