2.2. 从 Ansible Engine 迁移到 Ansible Core
先决条件
有对一个或多个受管节点(您要使用 RHEL 系统角色配置的系统)的访问权限。
- 列出受管节点的清单文件。
流程
卸载 Ansible Engine:
# dnf remove ansible
禁用
ansible-2-for-rhel-8-x86_64-rpms
存储库:# subscription-manager repos --disable ansible-2-for-rhel-8-x86_64-rpms
安装 Ansible Core,它包括在 RHEL 8 AppStream 存储库中:
# dnf install ansible-core
验证
检查您的系统中是否存在
ansible-core
软件包:# dnf info ansible-core
如果您的系统中确实存在 ansible-core
软件包,命令输出有关软件包名称、版本、发行版本、大小等信息:
Available Packages Name : ansible-core Version : 2.12.2 Release : 1.fc34 Architecture : noarch Size : 2.4 M Source : ansible-core-2.12.2-1.fc34.src.rpm Repository : updates Summary : A radically simple IT automation system URL : http://ansible.com
其他资源