diff --git a/utils/templates/ipamodule+member.py.in b/utils/templates/ipamodule+member.py.in index 5ce5cf1b34beb3d0b2a9d5dae05d57eb7e8edf0f..3d34d77b451005eeb0490f7b40188c1795d2eab2 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 aa52257bd628b5feebfae2dcc7e75f5e24717840..3b1bf1e8d9f539b0d26559bf2396191f5f4ba065 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 193cd6f38ae033d437aae6210a4cdba2be9a5ec1..ac92c081325d3a3f6ffe845ef539aec5ffa4689f 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.