ibm.storage_virtualize.ibm_sv_switch_replication_direction 模块 – 此模块用于切换 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_sv_switch_replication_direction

ibm.storage_virtualize 1.10.0 中的新增功能

概要

  • Ansible 接口,用于管理 chvolumegroupreplication 命令。

  • 此模块可用于切换复制方向。

参数

参数

注释

clustername

字符串 / 必需

Storage Virtualize 系统的主机名或管理 IP。

domain

字符串

Storage Virtualize 系统的域名。

当使用主机名作为参数 clustername 时有效。

log_path

字符串

调试日志文件的路径。

mode

字符串 / 必需

指定卷组的复制模式。

选项

  • "independent"

  • "production"

name

字符串 / 必需

指定卷组的名称。

password

字符串

Storage Virtualize 系统的 REST API 密码。

如果不使用 token 来验证用户,则需要 usernamepassword 参数。

token

字符串

用于在 Storage Virtualize 系统上验证用户的身份验证令牌。

要生成令牌,请使用 ibm.storage_virtualize.ibm_svc_auth 模块。

username

字符串

Storage Virtualize 系统的 REST API 用户名。

如果不使用 token 来验证用户,则需要 usernamepassword 参数。

validate_certs

布尔值

验证证书。

选项

  • false ← (默认)

  • true

注释

注意

  • 此模块支持 check_mode

示例

- name: Switch to independent mode
  ibm.storage_virtualize.ibm_sv_switch_replication_direction:
    clustername: "{{ clustername }}"
    username: "{{ username }}"
    password: "{{ password }}"
    mode: independent
    name: vg0

作者

  • Shilpi Jain(@Shilpi-J)