Blame playbooks/hostgroup/ensure-hosts-and-hostgroups-are-absent-in-hostgroup.yml

Packit 8cb997
---
Packit 8cb997
- name: Playbook to handle hostgroups
Packit 8cb997
  hosts: ipaserver
Packit 8cb997
  become: true
Packit 8cb997
Packit 8cb997
  tasks:
Packit 8cb997
  # Ensure hosts and hostgroups are present in existing databases hostgroup
Packit 8cb997
  - ipahostgroup:
Packit 8cb997
      ipaadmin_password: MyPassword123
Packit 8cb997
      name: databases
Packit 8cb997
      host:
Packit 8cb997
      - db.example.com
Packit 8cb997
      hostgroup:
Packit 8cb997
      - mysql-server
Packit 8cb997
      - oracle-server
Packit 8cb997
      action: member
Packit 8cb997
      state: absent