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

Allow clearing auth_ind by using "" as input value.

parent 1cf251ba
Branches
Tags
No related merge requests found
...@@ -327,7 +327,7 @@ def init_ansible_module(): ...@@ -327,7 +327,7 @@ def init_ansible_module():
choices=["MS-PAC", "PAD", "NONE"]), choices=["MS-PAC", "PAD", "NONE"]),
auth_ind=dict(type="list", auth_ind=dict(type="list",
aliases=["krbprincipalauthind"], aliases=["krbprincipalauthind"],
choices=["otp", "radius", "pkinit", "hardened"]), choices=["otp", "radius", "pkinit", "hardened", ""]),
skip_host_check=dict(type="bool"), skip_host_check=dict(type="bool"),
force=dict(type="bool"), force=dict(type="bool"),
requires_pre_auth=dict( requires_pre_auth=dict(
......
...@@ -495,6 +495,26 @@ ...@@ -495,6 +495,26 @@
register: result register: result
failed_when: result.changed 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 # cleanup
- name: Ensure services are absent. - 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