- name: Join the realm with password
  hosts: bookworm2
  become: yes
  tasks:
    - name: Join the realm using realm join command
      expect:
        command: realm join tomraud.fr --user=administrateur
        responses:
          "Password for administrateur:": [REDACTED]