ibm.storage_virtualize.ibm_svc_manage_ownershipgroup 模块 – 此模块管理 IBM Storage Virtualize 系列系统上的所有权组
注意
此模块是 ibm.storage_virtualize 集合 (版本 2.5.0) 的一部分。
如果您正在使用 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install ibm.storage_virtualize。
要在 playbook 中使用它,请指定:ibm.storage_virtualize.ibm_svc_manage_ownershipgroup。
ibm.storage_virtualize 1.7.0 中的新增功能
概要
- 用于管理“mkownershipgroup”和“rmownershipgroup”命令的 Ansible 接口。 
参数
| 参数 | 注释 | 
|---|---|
| Storage Virtualize 系统的主机名或管理 IP。 | |
| Storage Virtualize 系统的域名。 当主机名用于参数 *clustername* 时有效。 | |
| 如果指定,则当前属于所有权组的对象将被保留,但将移至 noownershipgroup。 当 *state=disabled* 时适用。 选项 
 | |
| 调试日志文件的路径。 | |
| 指定新所有权组对象的名称或标签。 | |
| Storage Virtualize 系统的 REST API 密码。 如果不使用 *token* 来验证用户,则需要参数 *username* 和 *password*。 | |
| 创建 ( 选项 
 | |
| 用于在 Storage Virtualize 系统上验证用户的身份验证令牌。 要生成令牌,请使用 ibm.storage_virtualize.ibm_svc_auth 模块。 | |
| Storage Virtualize 系统的 REST API 用户名。 如果不使用 *token* 来验证用户,则需要参数 *username* 和 *password*。 | |
| 验证证书。 选项 
 | 
备注
注意
- 此模块支持 - check_mode。
示例
- name: Create ownership group
  ibm.storage_virtualize.ibm_svc_manage_ownershipgroup:
    clustername: "{{ clustername }}"
    domain: "{{ domain }}"
    username: "{{ username }}"
    password: "{{ password }}"
    log_path: /tmp/playbook.debug
    name: newOwner
    state: present
- name: Delete ownership group
  ibm.storage_virtualize.ibm_svc_manage_ownershipgroup:
    clustername: "{{ clustername }}"
    domain: "{{ domain }}"
    username: "{{ username }}"
    password: "{{ password }}"
    log_path: /tmp/playbook.debug
    name: newOwner
    state: absent
    keepobjects: true
