Allow the use of multiple values with auth_ind variable.

This patch changes auth_ind variable to receive a list of values
instead of a single one, so that more than one value can be set
at once.

Tests have been updated to reflect the change.
This commit is contained in:
Rafael Guterres Jeffman
2020-06-01 14:40:53 -03:00
parent d7a3b7533c
commit c9210ca2d1
2 changed files with 22 additions and 2 deletions

View File

@@ -324,7 +324,7 @@ def init_ansible_module():
default=None),
pac_type=dict(type="list", aliases=["ipakrbauthzdata"],
choices=["MS-PAC", "PAD", "NONE"]),
auth_ind=dict(type="str",
auth_ind=dict(type="list",
aliases=["krbprincipalauthind"],
choices=["otp", "radius", "pkinit", "hardened"]),
skip_host_check=dict(type="bool"),

View File

@@ -113,7 +113,7 @@
- PAD
auth_ind: otp
skip_host_check: no
force: no
force: yes
requires_pre_auth: yes
ok_as_delegate: no
ok_to_auth_as_delegate: no
@@ -475,6 +475,26 @@
register: result
failed_when: result.changed
- name: Ensure service is present, with multiple auth_ind values.
ipaservice:
ipaadmin_password: SomeADMINpassword
name: "HTTP/{{ svc_fqdn }}"
auth_ind: otp,radius
skip_host_check: no
force: yes
register: result
failed_when: not result.changed
- name: Ensure service is present, with multiple auth_ind values, again.
ipaservice:
ipaadmin_password: SomeADMINpassword
name: "HTTP/{{ svc_fqdn }}"
auth_ind: otp,radius
skip_host_check: no
force: yes
register: result
failed_when: result.changed
# cleanup
- name: Ensure services are absent.