4.13. 在 Ansible Automation Platform 次版本间升级
要在 Ansible Automation Platform 2 的次发行版本间升级,请使用这个常规工作流。
重要
使用 2.4-8 安装程序,您可以恢复使用 2.4-8 或更高版本创建的备份。但是,您无法使用 2.4-1 将备份恢复到 2.4-7 安装程序。
确保在升级到 2.4-8 或更高版本之前和之后进行备份:
- 如果升级失败,在升级前进行备份。然后,您可以回滚到较早的安装,并应用与该 Ansible Automation Platform 版本兼容的备份。
- 进行安装后备份,该备份与最新更改兼容。
流程
- 下载并解压缩最新的 Ansible Automation Platform 2 安装捆绑包。
- 创建现有安装的备份。
- 将现有安装清单文件复制到新的安装捆绑包目录中。
-
运行
./setup.sh
以升级安装。
例如,要从 2.2.0-7 升级到 2.3-1.2,请确保两个设置捆绑包都位于安装发生的初始控制器节点上:
$ ls -1F ansible-automation-platform-setup-bundle-2.2.0-7/ ansible-automation-platform-setup-bundle-2.2.0-7.tar.gz ansible-automation-platform-setup-bundle-2.3-1.2/ ansible-automation-platform-setup-bundle-2.3-1.2.tar.gz
备份 2.2.0-7 安装:
$ cd ansible-automation-platform-setup-bundle-2.2.0-7 $ sudo ./setup.sh -b $ cd ..
将 2.2.0-7 清单文件复制到 2.3-1.2 捆绑包目录中:
$ cd ansible-automation-platform-setup-bundle-2.2.0-7 $ cp inventory ../ansible-automation-platform-setup-bundle-2.3-1.2/ $ cd ..
使用 setup.sh 脚本从 2.2.0-7 升级到 2.3-1.2 :
$ cd ansible-automation-platform-setup-bundle-2.3-1.2 $ sudo ./setup.sh