Maybe I'm mistaken, however:
Playbook:
- hosts:
- master2.example.com
roles:
- role: freeipa.ansible_freeipa.ipaserver
vars:
ipaserver: "{{ inventory_hostname }}"
ipaserver_hostname: "{{ inventory_hostname }}"
ipadm_password: SuperSecret123
ipaadmin_password: SuperSecret123
ipaserver_ip_addresses: "{{
hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}"
ipaserver_domain: "example.com"
ipaserver_realm: "EXAMPLE.COM"
ipaserver_no_host_dns: true
ipaserver_mem_check: true
ipaserver_idstart: 6000
ipaserver_setup_dns: false
ipaserver_no_pkinit: true
- hosts:
- master2.example.com
become: true
roles:
- role: freeipa.ansible_freeipa.ipareplica
vars:
ipaservers: master1.example.com
ipaserver_hostname: master1.example.com
ipareplicas: master2.example.com
ipareplica_domain: example.com
ipaclient_force_join: true
ipaadmin_principal: admin
ipareplica_setup_dns: false
As mentioned when running using a cloud dynamic inventory this playbook does
not work, however, as preivously mentioned, when creating a static inventory,
it works:
[ipaservers]
master1.example.com
[ipareplicas]
master2.example.com
_______________________________________________
FreeIPA-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedorahosted.org/archives/list/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue