简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。
在不使用 NetApp Docker 映像的情况下执行 Ansible 攻略手册
贡献者
建议更改
步骤
-
使用 * pip* 安装所需的 Python 软件包:
$ pip install netapp-lib requests paramiko Installing collected packages: netapp-lib, requests, paramiko Successfully installed netapp-lib-2020.3.12 requests-2.23.0 paramiko-2.7.2
-
使用 * 可变星系 * 命令安装 NetApp Ansible 资料集:
To install the collection only for the current user $ ansible-galaxy collection install netapp.ontap To do a more universal installation, $ ansible-galaxy collection install netapp.ontap -p /usr/share/ansible/collections $ chmod -R +rw /usr/share/ansible/collections
有关 Ansible galxy 命令的详细信息,请参见 "Ansible GALAXY 文档" 有关 NetApp Ansible 资料集的详细信息,请参见 "NetApp Ansible Collection 页面"。
-
使用 * Ansible 攻略手册 * 命令执行 Ansible 攻略手册:
$ cd <downloaded_playbook_path> $ ansible-playbook na_ontap_pb_upgrade_firmware.yml Enter your ONTAP admin username: **** Enter the password for your ONTAP admin user: **** Enter the base URL to the firmware package (using HTTP is recommended): http://<web-server>/path/ PLAY [ONTAP Firmware Upgrade] ****************************************************************
如果有一组集群使用不同的登录凭据,则必须在每个集群上运行 Ansible 攻略手册。不需要更改清单文件,因为 Ansible 攻略手册会跳过登录失败的集群。
有关 * 安全攻略手册 * 命令的详细信息,请参见 "Ansible 攻略手册文档" 要在检查模式(试运行)下执行 Ansible 攻略手册,请参见 "Ansible :检查模式"。
执行攻略手册后,请参见 "固件安装验证" 用于执行后的说明。