diff --git a/utils/templates/ipamodule+member.py.in b/utils/templates/ipamodule+member.py.in index 5ce5cf1b..3d34d77b 100644 --- a/utils/templates/ipamodule+member.py.in +++ b/utils/templates/ipamodule+member.py.in @@ -157,10 +157,10 @@ def main(): PARAMETER2=dict(required=False, type='list', elements='str', default=None, aliases=["API_PARAMETER_NAME"]), # action - action=dict(type="str", default="$name", type="str", + action=dict(type="str", default="$name", choices=["member", "$name"]), # state - state=dict(type="str", default="present", type="str", + state=dict(type="str", default="present", choices=["present", "absent"]), ), supports_check_mode=True, diff --git a/utils/templates/ipamodule.py.in b/utils/templates/ipamodule.py.in index aa52257b..3b1bf1e8 100644 --- a/utils/templates/ipamodule.py.in +++ b/utils/templates/ipamodule.py.in @@ -128,7 +128,7 @@ def main(): PARAMETER2=dict(required=False, type='list', elements='str', aliases=["API_PARAMETER_NAME"], default=None), # state - state=dict(type="str", default="present", type="str", + state=dict(type="str", default="present", choices=["present", "absent"]), ), supports_check_mode=True, diff --git a/utils/templates/test_module_client_context.yml.in b/utils/templates/test_module_client_context.yml.in index 193cd6f3..ac92c081 100644 --- a/utils/templates/test_module_client_context.yml.in +++ b/utils/templates/test_module_client_context.yml.in @@ -9,7 +9,7 @@ tasks: - name: Include FreeIPA facts. - include_tasks: ../env_freeipa_facts.yml + ansible.builtin.include_tasks: ../env_freeipa_facts.yml # Test will only be executed if host is not a server. - name: Execute with server context in the client.