cisco.ise.tacacs_profile 模块 – TACACS Profile 的资源模块
注意
此模块是 cisco.ise 集合(版本 2.9.6)的一部分。
如果您正在使用 ansible 包,您可能已经安装了此集合。 它不包含在 ansible-core 中。 要检查是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用: ansible-galaxy collection install cisco.ise。 您需要进一步的要求才能使用此模块,有关详细信息,请参阅 要求。
要在剧本中使用它,请指定:cisco.ise.tacacs_profile。
cisco.ise 1.0.0 中的新增功能
概要
- 管理资源 TACACS Profile 的创建、更新和删除操作。 
- 此 API 创建一个 TACACS Profile。 
- 此 API 删除一个 TACACS Profile。 
- 此 API 允许客户端更新 TACACS Profile。 
注意
此模块具有相应的 操作插件。
要求
执行此模块的主机上需要以下要求。
- ciscoisesdk >= 2.2.3 
- python >= 3.5 
参数
| 参数 | 注释 | 
|---|---|
| TACACS Profile 的描述。 | |
| TACACS Profile 的 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 Profile 的名称。 | |
| 保存会话属性列表。GUI 的视图类型默认为 Shell。 | |
| TACACS Profile 的 sessionAttributeList。 | |
| TACACS Profile 的名称。 | |
| 允许的值为 MANDATORY、OPTIONAL。 | |
| TACACS Profile 的值。 | 
注释
注意
- 使用的 SDK 方法是 tacacs_profile.TacacsProfile.create_tacacs_profile、tacacs_profile.TacacsProfile.delete_tacacs_profile_by_id、tacacs_profile.TacacsProfile.update_tacacs_profile_by_id, 
- 使用的路径是 post /ers/config/tacacsprofile、delete /ers/config/tacacsprofile/{id}、put /ers/config/tacacsprofile/{id}, 
- 不支持 - check_mode
- 该插件在控制节点上运行,不使用任何 ansible 连接插件,而是使用 Cisco ISE SDK 中的嵌入式连接管理器 
- 以 ise_ 开头的参数由 Cisco ISE Python SDK 用于建立连接 
示例
- name: Update by id
  cisco.ise.tacacs_profile:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    state: present
    description: string
    id: string
    name: string
    sessionAttributes:
      sessionAttributeList:
      - name: string
        type: string
        value: string
- name: Delete by id
  cisco.ise.tacacs_profile:
    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_profile:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    state: present
    description: string
    name: string
    sessionAttributes:
      sessionAttributeList:
      - name: string
        type: string
        value: string
返回值
常见的返回值记录在此处,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| 一个字典或列表,其中包含 Cisco ISE Python SDK 返回的响应 返回: 始终 示例:  | |
| 一个字典或列表,其中包含 Cisco ISE Python SDK 返回的响应 返回: 始终 示例:  | 
