Class: Ansible::Ruby::Modules::Win_domain_group
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Win_domain_group
- Defined in:
- lib/ansible/ruby/modules/generated/windows/win_domain_group.rb
Overview
Creates, modifies or removes groups in Active Directory. For local groups, use the M(win_group) module instead.
Instance Method Summary collapse
-
#attributes ⇒ Hash?
A dict of custom LDAP attributes to set on the group.,This can be used to set custom attributes that are not exposed as module parameters, e.g.
-
#category ⇒ :distribution, ...
The category of the group, this is the value to assign to the LDAP C(groupType) attribute.,If a new group is created then C(security) will be used by default.
-
#description ⇒ Object?
The value to be assigned to the LDAP C(description) attribute.
-
#display_name ⇒ Object?
The value to assign to the LDAP C(displayName) attribute.
-
#domain_password ⇒ String?
The password for C(username).
-
#domain_server ⇒ String?
Specifies 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 domain of the computer running PowerShell.
-
#domain_username ⇒ String?
The username to use when interacting with AD.,If this is not set then the user Ansible used to log in with will be used instead.
-
#ignore_protection ⇒ :yes, ...
Will ignore the C(ProtectedFromAccidentalDeletion) flag when deleting or moving a group.,The module will fail if one of these actions need to occur and this value is set to C(no).
-
#managed_by ⇒ String?
The value to be assigned to the LDAP C(managedBy) attribute.,This value can be in the forms C(Distinguished Name), C(objectGUID), C(objectSid) or C(sAMAccountName), see examples for more details.
-
#name ⇒ Array<String>, String
The name of the group to create, modify or remove.,This value can be in the forms C(Distinguished Name), C(objectGUID), C(objectSid) or C(sAMAccountName), see examples for more details.
-
#organizational_unit ⇒ Array<String>, ...
The full LDAP path to create or move the group to.,This should be the path to the parent object to create or move the group to.,See examples for details of how this path is formed.
-
#protect ⇒ Symbol?
Will set the C(ProtectedFromAccidentalDeletion) flag based on this value.,This flag stops a user from deleting or moving a group to a different path.
-
#scope ⇒ :domainlocal, ...
The scope of the group.,If C(state=present) and the group doesn’t exist then this must be set.
-
#state ⇒ :absent, ...
If C(state=present) this module will ensure the group is created and is configured accordingly.,If C(state=absent) this module will delete the group if it exists.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#attributes ⇒ Hash?
Returns A dict of custom LDAP attributes to set on the group.,This can be used to set custom attributes that are not exposed as module parameters, e.g. C(mail).,See the examples on how to format this parameter.
13 |
# File 'lib/ansible/ruby/modules/generated/windows/win_domain_group.rb', line 13 attribute :attributes |
#category ⇒ :distribution, ...
Returns The category of the group, this is the value to assign to the LDAP C(groupType) attribute.,If a new group is created then C(security) will be used by default.
17 |
# File 'lib/ansible/ruby/modules/generated/windows/win_domain_group.rb', line 17 attribute :category |
#description ⇒ Object?
Returns The value to be assigned to the LDAP C(description) attribute.
21 |
# File 'lib/ansible/ruby/modules/generated/windows/win_domain_group.rb', line 21 attribute :description |
#display_name ⇒ Object?
Returns The value to assign to the LDAP C(displayName) attribute.
24 |
# File 'lib/ansible/ruby/modules/generated/windows/win_domain_group.rb', line 24 attribute :display_name |
#domain_password ⇒ String?
Returns The password for C(username).
31 |
# File 'lib/ansible/ruby/modules/generated/windows/win_domain_group.rb', line 31 attribute :domain_password |
#domain_server ⇒ String?
Returns Specifies 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 domain of the computer running PowerShell.
35 |
# File 'lib/ansible/ruby/modules/generated/windows/win_domain_group.rb', line 35 attribute :domain_server |
#domain_username ⇒ String?
Returns The username to use when interacting with AD.,If this is not set then the user Ansible used to log in with will be used instead.
27 |
# File 'lib/ansible/ruby/modules/generated/windows/win_domain_group.rb', line 27 attribute :domain_username |
#ignore_protection ⇒ :yes, ...
Returns Will ignore the C(ProtectedFromAccidentalDeletion) flag when deleting or moving a group.,The module will fail if one of these actions need to occur and this value is set to C(no).
39 |
# File 'lib/ansible/ruby/modules/generated/windows/win_domain_group.rb', line 39 attribute :ignore_protection |
#managed_by ⇒ String?
Returns The value to be assigned to the LDAP C(managedBy) attribute.,This value can be in the forms C(Distinguished Name), C(objectGUID), C(objectSid) or C(sAMAccountName), see examples for more details.
43 |
# File 'lib/ansible/ruby/modules/generated/windows/win_domain_group.rb', line 43 attribute :managed_by |
#name ⇒ Array<String>, String
Returns The name of the group to create, modify or remove.,This value can be in the forms C(Distinguished Name), C(objectGUID), C(objectSid) or C(sAMAccountName), see examples for more details.
47 |
# File 'lib/ansible/ruby/modules/generated/windows/win_domain_group.rb', line 47 attribute :name |
#organizational_unit ⇒ Array<String>, ...
Returns The full LDAP path to create or move the group to.,This should be the path to the parent object to create or move the group to.,See examples for details of how this path is formed.
51 |
# File 'lib/ansible/ruby/modules/generated/windows/win_domain_group.rb', line 51 attribute :organizational_unit |
#protect ⇒ Symbol?
Returns Will set the C(ProtectedFromAccidentalDeletion) flag based on this value.,This flag stops a user from deleting or moving a group to a different path.
55 |
# File 'lib/ansible/ruby/modules/generated/windows/win_domain_group.rb', line 55 attribute :protect |
#scope ⇒ :domainlocal, ...
Returns The scope of the group.,If C(state=present) and the group doesn’t exist then this must be set.
59 |
# File 'lib/ansible/ruby/modules/generated/windows/win_domain_group.rb', line 59 attribute :scope |
#state ⇒ :absent, ...
Returns If C(state=present) this module will ensure the group is created and is configured accordingly.,If C(state=absent) this module will delete the group if it exists.
63 |
# File 'lib/ansible/ruby/modules/generated/windows/win_domain_group.rb', line 63 attribute :state |