Desatualizado https://docs.ansible.com/ansible/latest/collections/community/general/ipa_hostgroup_module.html Reported by: charles.andrade https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/managing_idm_users_groups_hosts_and_access_control_rules/managing-host-groups-using-ansible-playbooks_managing-users-groups-hosts#annotations:76b11daa-29b1-4ea9-8ed6-99de585b61b0
The documentation is still valid. The reporter mistakes ansible collections for the ansible-freeipa package that is shipped with RHEL. Evidence that the `ipahostgroup` module is still working on RHEL: $ ansible-playbook hostgrouptest.yml 2 BECOME password: PLAY [Playbook to handle hostgroups] ******************************************************************************************************* TASK [Gathering Facts] ********************************************************************************************************************* ok: [192.168.122.47] TASK [ipahostgroup] ************************************************************************************************************************ changed: [192.168.122.47] PLAY RECAP ********************************************************************************************************************************* 192.168.122.47 : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 $ cat hostgrouptest.yml --- - name: Playbook to handle hostgroups hosts: ipaserver become: true tasks: # Ensure hosts and hostgroups are present in existing databases hostgroup - ipahostgroup: ipaadmin_password: Secret123 name: databases host: - vojta.idm.example.com hostgroup: - blablaservers