mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-30 11:24:50 +00:00
Allow clearing auth_ind by using "" as input value.
This commit is contained in:
@@ -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 @@
|
|||||||
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user