--- - name: Host present with principal hosts: ipaserver become: true tasks: - name: Host host01.example.com present with principals host/testhost01.example.com and host/myhost01.example.com ipahost: ipaadmin_password: MyPassword123 name: host01.example.com principal: - host/testhost01.example.com - host/myhost01.example.com force: yes