cisco.ise.tacacs_command_sets 模块 – TACACS 命令集资源模块
注意
此模块是 cisco.ise 集合 (版本 2.9.6) 的一部分。
如果您正在使用 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install cisco.ise。您需要其他要求才能使用此模块,请参阅 要求 获取详细信息。
要在 playbook 中使用它,请指定:cisco.ise.tacacs_command_sets。
cisco.ise 1.0.0 中的新增功能
概要
- 管理 TACACS 命令集资源的创建、更新和删除操作。 
- 此 API 创建 TACACS 命令集。 
- 此 API 删除 TACACS 命令集。 
- 此 API 允许客户端更新 TACACS 命令集。 
注意
此模块具有相应的 action 插件。
要求
以下是执行此模块的主机所需的条件。
- ciscoisesdk >= 2.2.3 
- python >= 3.5 
参数
| 参数 | 注释 | 
|---|---|
| TACACS 命令集的 commands。 | |
| TACACS 命令集的 commandList。 | |
| TACACS 命令集的 arguments。 | |
| TACACS 命令集的 command。 | |
| 允许的值 PERMIT、DENY、DENY_ALWAYS。 | |
| TACACS 命令集的 description。 | |
| TACACS 命令集的 id。 | |
| 用于 Identity Services Engine SDK 的标志,用于启用调试。 选项 
 | |
| Identity Services Engine 主机名。 | |
| 用于身份验证的 Identity Services Engine 密码。 | |
| RESTful HTTP 请求的超时时间(以秒为单位)。 默认值:  | |
| 用于身份验证的 Identity Services Engine 用户名。 | |
| 通知 SDK 我们是否将 CSRF 令牌发送到 ISE 的 ERS API 的标志。 如果为 True,则 SDK 假设您的 ISE CSRF 检查已启用。 如果为 True,则假定您需要 SDK 自动为您管理 CSRF 令牌。 选项 
 | |
| 启用或禁用 SSL 证书验证的标志。 选项 
 | |
| 告知 SDK 使用哪个版本的 Identity Services Engine。 默认值:  | |
| 用于 Identity Services Engine SDK 的标志,用于启用自动速率限制处理。 选项 
 | |
| TACACS 命令集的名称。 | |
| PermitUnmatched 标志。 选项 
 | 
备注
注意
- 使用的 SDK 方法是 tacacs_command_sets.TacacsCommandSets.create_tacacs_command_sets、tacacs_command_sets.TacacsCommandSets.delete_tacacs_command_sets_by_id、tacacs_command_sets.TacacsCommandSets.update_tacacs_command_sets_by_id, 
- 使用的路径是 post /ers/config/tacacscommandsets、delete /ers/config/tacacscommandsets/{id}、put /ers/config/tacacscommandsets/{id}, 
- 不支持 - check_mode
- 该插件在控制节点上运行,不使用任何 Ansible 连接插件,而是使用 Cisco ISE SDK 的嵌入式连接管理器 
- 以 ise_ 开头的参数由 Cisco ISE Python SDK 用于建立连接 
示例
- name: Update by id
  cisco.ise.tacacs_command_sets:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    state: present
    commands:
      commandList:
      - arguments: string
        command: string
        grant: string
    description: string
    id: string
    name: string
    permitUnmatched: true
- name: Delete by id
  cisco.ise.tacacs_command_sets:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    state: absent
    id: string
- name: Create
  cisco.ise.tacacs_command_sets:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    state: present
    commands:
      commandList:
      - arguments: string
        command: string
        grant: string
    description: string
    name: string
    permitUnmatched: true
返回值
常见的返回值已在 此处 记录,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| 包含 Cisco ISE Python SDK 返回的响应的字典或列表 返回: 始终 示例:  | |
| 包含 Cisco ISE Python SDK 返回的响应的字典或列表 返回: 始终 示例:  | 
