Replaced groups.ipaserver[0] by ansible_fqdn.

Since we are using docker for running the tests we can no longer rely on
groups.ipaserver[0] as the managed host hostname.
This commit is contained in:
Sergio Oliveira Campos
2020-07-24 11:09:23 -03:00
parent 4e89da8536
commit 7a6036f7cf
25 changed files with 51 additions and 58 deletions

View File

@@ -7,7 +7,7 @@
# setup
- name: Get Domain from server name
set_fact:
ipaserver_domain: "{{ groups.ipaserver[0].split('.')[1:] | join ('.') }}"
ipaserver_domain: "{{ ansible_fqdn.split('.')[1:] | join ('.') }}"
when: ipaserver_domain is not defined
- name: Set host1, host2 and svc hosts fqdn