Class: Ansible::Ruby::Modules::Win_user

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/windows/win_user.rb

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#account_disabled:yes, ...

Returns C(yes) will disable the user account. C(no) will clear the disabled flag.

Returns:

  • (:yes, :no, nil)

    C(yes) will disable the user account. C(no) will clear the disabled flag.



39
# File 'lib/ansible/ruby/modules/generated/core/windows/win_user.rb', line 39

attribute :account_disabled

#account_locked:no?

Returns C(no) will unlock the user account if locked.

Returns:

  • (:no, nil)

    C(no) will unlock the user account if locked.



43
# File 'lib/ansible/ruby/modules/generated/core/windows/win_user.rb', line 43

attribute :account_locked

#descriptionObject?

Returns Description of the user.

Returns:

  • (Object, nil)

    Description of the user



17
# File 'lib/ansible/ruby/modules/generated/core/windows/win_user.rb', line 17

attribute :description

#fullnameObject?

Returns Full name of the user.

Returns:

  • (Object, nil)

    Full name of the user



14
# File 'lib/ansible/ruby/modules/generated/core/windows/win_user.rb', line 14

attribute :fullname

#groupsObject?

Returns Adds or removes the user from this comma-separated lis of groups, depending on the value of I(groups_action). When I(groups_action) is C(replace) and I(groups) is set to the empty string (‘groups=’), the user is removed from all groups.

Returns:

  • (Object, nil)

    Adds or removes the user from this comma-separated lis of groups, depending on the value of I(groups_action). When I(groups_action) is C(replace) and I(groups) is set to the empty string (‘groups=’), the user is removed from all groups.



47
# File 'lib/ansible/ruby/modules/generated/core/windows/win_user.rb', line 47

attribute :groups

#groups_action:replace, ...

Returns If C(replace), the user is added as a member of each group in I(groups) and removed from any other groups. If C(add), the user is added to each group in I(groups) where not already a member. If C(remove), the user is removed from each group in I(groups).

Returns:

  • (:replace, :add, :remove, nil)

    If C(replace), the user is added as a member of each group in I(groups) and removed from any other groups. If C(add), the user is added to each group in I(groups) where not already a member. If C(remove), the user is removed from each group in I(groups).



50
# File 'lib/ansible/ruby/modules/generated/core/windows/win_user.rb', line 50

attribute :groups_action

#nameString

Returns Name of the user to create, remove or modify.

Returns:

  • (String)

    Name of the user to create, remove or modify.



10
# File 'lib/ansible/ruby/modules/generated/core/windows/win_user.rb', line 10

attribute :name

#passwordObject?

Returns Optionally set the user’s password to this (plain text) value.

Returns:

  • (Object, nil)

    Optionally set the user’s password to this (plain text) value.



20
# File 'lib/ansible/ruby/modules/generated/core/windows/win_user.rb', line 20

attribute :password

#password_expired:yes, ...

Returns C(yes) will require the user to change their password at next login. C(no) will clear the expired password flag.

Returns:

  • (:yes, :no, nil)

    C(yes) will require the user to change their password at next login. C(no) will clear the expired password flag.



27
# File 'lib/ansible/ruby/modules/generated/core/windows/win_user.rb', line 27

attribute :password_expired

#password_never_expires:yes, ...

Returns C(yes) will set the password to never expire. C(no) will allow the password to expire.

Returns:

  • (:yes, :no, nil)

    C(yes) will set the password to never expire. C(no) will allow the password to expire.



31
# File 'lib/ansible/ruby/modules/generated/core/windows/win_user.rb', line 31

attribute :password_never_expires

#state:present, ...

Returns When C(present), creates or updates the user account. When C(absent), removes the user account if it exists. When C(query) (new in 1.9), retrieves the user account details without making any changes.

Returns:

  • (:present, :absent, :query, nil)

    When C(present), creates or updates the user account. When C(absent), removes the user account if it exists. When C(query) (new in 1.9), retrieves the user account details without making any changes.



54
# File 'lib/ansible/ruby/modules/generated/core/windows/win_user.rb', line 54

attribute :state

#update_password:always, ...

Returns C(always) will update passwords if they differ. C(on_create) will only set the password for newly created users.

Returns:

  • (:always, :on_create, nil)

    C(always) will update passwords if they differ. C(on_create) will only set the password for newly created users.



23
# File 'lib/ansible/ruby/modules/generated/core/windows/win_user.rb', line 23

attribute :update_password

#user_cannot_change_password:yes, ...

Returns C(yes) will prevent the user from changing their password. C(no) will allow the user to change their password.

Returns:

  • (:yes, :no, nil)

    C(yes) will prevent the user from changing their password. C(no) will allow the user to change their password.



35
# File 'lib/ansible/ruby/modules/generated/core/windows/win_user.rb', line 35

attribute :user_cannot_change_password