fortinet.fortios.fortios_system_replacemsg_automation 模块 – 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_system_replacemsg_automation。
fortinet.fortios 2.0.0 中的新增功能
概要
- 此模块能够配置 FortiGate 或 FortiOS (FOS) 设备,允许用户设置和修改 system_replacemsg 功能和自动化类别。示例包括所有参数和值,在使用前需要调整到数据源。已使用 FOS v6.0.0 测试。 
要求
执行此模块的主机需要满足以下要求。
- ansible>=2.15 
参数
| 参数 | 注释 | 
|---|---|
| 基于令牌的身份验证。从 Fortigate 的 GUI 生成。 | |
| 启用/禁用任务日志记录。 选择 
 | |
| 要操作的成员属性路径。 如果存在多个属性,则用斜杠字符分隔。 使用 member_path 标记的参数对于执行成员操作是合法的。 | |
| 在指定属性路径下添加或删除成员。 当指定 member_state 时,将忽略 state 选项。 选择 
 | |
| 指示是创建还是删除对象。 选择 
 | |
| 替换消息。 | |
| 消息字符串。 | |
| 格式标志。 选择 
 | |
| 标头标志。 选择 
 | |
| 消息类型。 | |
| 虚拟域,在先前定义的那些域中。vdom 是 FortiGate 的虚拟实例,可以配置并用作不同的单元。 默认值:  | 
说明
注意
- 旧的 fortiosapi 已被弃用,httpapi 是运行 playbook 的首选方式 
示例
- name: Replacement messages.
  fortinet.fortios.fortios_system_replacemsg_automation:
      vdom: "{{ vdom }}"
      state: "present"
      access_token: "<your_own_value>"
      system_replacemsg_automation:
          buffer: "<your_own_value>"
          format: "none"
          header: "none"
          msg_type: "<your_own_value>"
返回值
通用返回值记录在此处,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| FortiGate 映像的版本号 返回: 始终 示例:  | |
| 上次用于将内容配置到 FortiGate 中的方法 返回: 始终 示例:  | |
| FortiGate 在上次应用的操作中给出的最后结果 返回: 始终 示例:  | |
| 上次调用 FortiGate 时使用的主键 (id) 返回: 成功 示例:  | |
| 用于满足请求的表名 返回: 始终 示例:  | |
| 用于满足请求的表路径 返回: 始终 示例:  | |
| 内部修订号 返回: 始终 示例:  | |
| 设备的序列号 返回: 始终 示例:  | |
| 指示操作结果 返回: 始终 示例:  | |
| 使用的虚拟域 返回: 始终 示例:  | |
| FortiGate 的版本 返回: 始终 示例:  | 
