5.4. RPM 集合子软件包和 RH AAH 集合之间的兼容性
从 RHEL 9.7 开始,ansible-freeipa RPM 软件包提供的 ansible-freeipa-collection 子软件包与 Red Hat Ansible Automation Hub (RH AAH)提供的 redhat.rhel_idm 集合的命名空间和名称惯例兼容。安装 RPM 集合子软件包后,您可以运行从 AAH 集合中引用角色和模块的 playbook。在内部,会使用 RPM 子软件包的命名空间和名称。
例如,以下两个 playbook 的功能是一样的:
---
- name: Host playbook
hosts: ipaserver
tasks:
- name: Ensure host is present
redhat.rhel_idm.ipahost:
ipaadmin_password: SomeADMINpassword
name: host01.example.com
description: Example host
ip_address: 192.168.0.123
state: present
---
- name: Host playbook
hosts: ipaserver
tasks:
- name: Ensure host is present
freeipa.ansible_freeipa.ipahost:
ipaadmin_password: SomeADMINpassword
name: host01.example.com
description: Example host
ip_address: 192.168.0.123
state: present