Skip to content
Snippets Groups Projects
Commit cf0b7100 authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

Allow clearing auth_ind by using "" as input value.

parent bf9024f7
Branches
Tags
No related merge requests found
......@@ -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(
......
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment