ipa/service: drop the PR I merged

The 'stat' can't work because "{{ service }}/{{ host }}" isn't a real
path name.

Revert "check if ipa service entry exists"

This reverts commit 98475f6ae4.
This commit is contained in:
Pavel Raiskup 2022-11-23 14:50:50 +01:00
parent 98475f6ae4
commit 8d3cbc375e

View file

@ -9,15 +9,6 @@
- config
- krb5
- name: Check if service exists
delegate_to: "{{ ipa_server }}"
stat:
path: "{{ service }}/{{ host }}"
register: ipa_service_defined
tags:
- config
- krb5
- name: Create service entry
delegate_to: "{{ ipa_server }}"
ipaservice:
@ -25,7 +16,6 @@
name: "{{ service }}/{{ host }}"
principal: "{{ principal_alias | default(omit) }}"
force: yes
when: not ipa_service_defined.stat.exists
tags:
- config
- krb5