Allow clearing auth_ind by using "" as input value.

This commit is contained in:
Rafael Guterres Jeffman
2020-06-07 19:22:12 -03:00
parent 1cf251baf8
commit 3981dafd7b
2 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -327,7 +327,7 @@ def init_ansible_module():
choices=["MS-PAC", "PAD", "NONE"]),
auth_ind=dict(type="list",
aliases=["krbprincipalauthind"],
choices=["otp", "radius", "pkinit", "hardened"]),
choices=["otp", "radius", "pkinit", "hardened", ""]),
skip_host_check=dict(type="bool"),
force=dict(type="bool"),
requires_pre_auth=dict(
+20
View File
@@ -495,6 +495,26 @@
register: result
failed_when: result.changed
- name: Clear auth_ind.
ipaservice:
ipaadmin_password: SomeADMINpassword
name: "HTTP/{{ svc_fqdn }}"
auth_ind: ""
skip_host_check: no
force: yes
register: result
failed_when: not result.changed
- name: Clear auth_ind, again.
ipaservice:
ipaadmin_password: SomeADMINpassword
name: "HTTP/{{ svc_fqdn }}"
auth_ind: ""
skip_host_check: no
force: yes
register: result
failed_when: result.changed
# cleanup
- name: Ensure services are absent.