5.4. RPM 和 RH AAH 集合之间的兼容性
ansible-freeipa RPM 软件包提供的 freeipa.ansible_freeipa 集合与 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