Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add module defaults group #96

Merged
merged 1 commit into from
Feb 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelogs/fragments/default_options.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
minor_changes:
- >-
Added ``group/microsoft.ad.domain`` module defaults group for the ``computer``, ``group``, ``object_info``,
``object``, ``ou``, and ``user`` module. Users can use this defaults group to set common connection options
for these modules such as the ``domain_server``, ``domain_username``, and ``domain_password`` options.
10 changes: 9 additions & 1 deletion meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
requires_ansible: '>=2.14'
requires_ansible: '>=2.14'
action_groups:
domain:
- computer
- group
- object_info
- object
- ou
- user
6 changes: 6 additions & 0 deletions plugins/doc_fragments/ad_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,25 @@ class ModuleDocFragment:
domain_password:
description:
- The password for I(domain_username).
- This can be set under the R(play's module defaults,module_defaults_groups)
under the C(group/microsoft.ad.domain) group.
type: str
domain_server:
description:
- Specified the Active Directory Domain Services instance to connect to.
- Can be in the form of an FQDN or NetBIOS name.
- If not specified then the value is based on the default domain of the computer running PowerShell.
- This can be set under the R(play's module defaults,module_defaults_groups)
under the C(group/microsoft.ad.domain) group.
type: str
domain_username:
description:
- The username to use when interacting with AD.
- If this is not set then the user that is used for authentication will be the connection user.
- Ansible will be unable to use the connection user unless auth is Kerberos with credential delegation or CredSSP,
or become is used on the task.
- This can be set under the R(play's module defaults,module_defaults_groups)
under the C(group/microsoft.ad.domain) group.
type: str
identity:
description:
Expand Down
6 changes: 6 additions & 0 deletions plugins/modules/object_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,25 @@
domain_password:
description:
- The password for I(domain_username).
- This can be set under the R(play's module defaults,module_defaults_groups)
under the C(group/microsoft.ad.domain) group.
type: str
domain_server:
description:
- Specified the Active Directory Domain Services instance to connect to.
- Can be in the form of an FQDN or NetBIOS name.
- If not specified then the value is based on the default domain of the computer running PowerShell.
- This can be set under the R(play's module defaults,module_defaults_groups)
under the C(group/microsoft.ad.domain) group.
type: str
domain_username:
description:
- The username to use when interacting with AD.
- If this is not set then the user that is used for authentication will be the connection user.
- Ansible will be unable to use the connection user unless auth is Kerberos with credential delegation or CredSSP,
or become is used on the task.
- This can be set under the R(play's module defaults,module_defaults_groups)
under the C(group/microsoft.ad.domain) group.
type: str
filter:
description:
Expand Down