Files
ansible-freeipa/plugins/modules
Thomas Woerner e30bcfd876 ipaconfig: Set allow_empty_string for user_auth_type, pac_type, configstring
The parameters user_auth_type, pac_type and configstring are allowing to
use "" to reset to the default value or for configstring to set an empty
list.

The new check in params_get is not allowing to use empty strings in lists,
therefore allow_empty_string=True had to be added to the call.

A test has been added to verify that the empty strings are supported and
working.

Additionally empty pac_type, user_auth_type and domain_resolution_order
have been added to exit_args as if they have not been set.
2022-02-28 13:12:41 +01:00
..
2022-01-12 16:54:52 +01:00
2021-11-24 10:07:02 +01:00
2021-11-24 10:07:02 +01:00
2021-11-24 10:07:02 +01:00
2021-11-24 10:07:02 +01:00
2021-11-24 10:07:02 +01:00
2021-11-24 10:07:02 +01:00
2021-11-24 10:07:02 +01:00
2021-11-24 10:07:02 +01:00
2021-11-24 10:07:02 +01:00
2021-11-24 10:07:02 +01:00
2021-11-24 10:07:02 +01:00
2021-11-24 10:07:02 +01:00

Writing a new Ansible FreeIPA module

A ansible-freeipa module should have:

  • Code:

    • A module file placed in plugins/modules/<ipa_module_name>.py
  • Documentation:

    • README-<module_name>.md file in the root directory and linked from the main README.md
    • Example playbooks in playbooks/<module_name>/ directory
  • Tests:

    • Test cases (also playbooks) defined in tests/<module_name>/test_<something>.yml. It's ok to have multiple files in this directory.

Use the script utils/new_module to create the stub files for a new module.