---
- name: Playbook to handle global IPA configuration
  hosts: ipaserver
  become: no
  gather_facts: no

  tasks:
  - name: Query IPA global configuration
    ipaconfig:
      ipaadmin_password: SomeADMINpassword
    register: serverconfig

  - name: Display current configuration.
    ansible.builtin.debug:
      msg: "{{ serverconfig }}"
