1
0
Fork 0
forked from infra/ansible

Use the newer modules for ipa/host and ipa/service

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2020-11-30 13:31:24 +01:00
commit 3142dac13f
Signed by untrusted user: abompard
GPG key ID: 31584CFEB9BF64AD
2 changed files with 9 additions and 18 deletions

View file

@ -1,13 +1,10 @@
---
- name: Create host entry
delegate_to: localhost
ipa_host:
delegate_to: "{{ ipa_server }}"
ipahost:
ipaadmin_password: "{{ ipa_admin_password }}"
name: "{{ host }}"
force: yes
ipa_host: "{{ ipa_server }}"
ipa_user: admin
ipa_pass: "{{ipa_admin_password}}"
validate_certs: no
tags:
- config
- krb5

View file

@ -1,26 +1,20 @@
---
- name: Create host entry
delegate_to: localhost
ipa_host:
delegate_to: "{{ ipa_server }}"
ipahost:
ipaadmin_password: "{{ ipa_admin_password }}"
name: "{{ host }}"
force: yes
ipa_host: "{{ ipa_server }}"
ipa_user: admin
ipa_pass: "{{ipa_admin_password}}"
validate_certs: no
tags:
- config
- krb5
- name: Create service entry
delegate_to: localhost
ipa_service:
delegate_to: "{{ ipa_server }}"
ipaservice:
ipaadmin_password: "{{ ipa_admin_password }}"
name: "{{ service }}/{{ host }}"
force: yes
ipa_host: "{{ ipa_server }}"
ipa_user: admin
ipa_pass: "{{ipa_admin_password}}"
validate_certs: no
tags:
- config
- krb5