Class: Ansible::Ruby::Modules::Mysql_user

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/database/mysql/mysql_user.rb

Overview

Adds or removes a user from a MySQL database.

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, remove_existing_validations, #to_h, validates

Constructor Details

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

Instance Method Details

#append_privs:yes, ...

Returns Append the privileges defined by priv to the existing ones for this user instead of overwriting existing ones.

Returns:

  • (:yes, :no, nil)

    Append the privileges defined by priv to the existing ones for this user instead of overwriting existing ones.



35
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_user.rb', line 35

attribute :append_privs

#check_implicit_admin:yes, ...

Returns Check if mysql allows login as root/nopassword before trying supplied credentials.

Returns:

  • (:yes, :no, nil)

    Check if mysql allows login as root/nopassword before trying supplied credentials.



47
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_user.rb', line 47

attribute :check_implicit_admin

#encrypted:yes, ...

Returns Indicate that the ‘password’ field is a ‘mysql_native_password` hash.

Returns:

  • (:yes, :no, nil)

    Indicate that the ‘password’ field is a ‘mysql_native_password` hash



19
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_user.rb', line 19

attribute :encrypted

#hostString?

Returns the ‘host’ part of the MySQL username.

Returns:

  • (String, nil)

    the ‘host’ part of the MySQL username



23
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_user.rb', line 23

attribute :host

#host_all:yes, ...

Returns override the host option, making ansible apply changes to all hostnames for a given user. This option cannot be used when creating users.

Returns:

  • (:yes, :no, nil)

    override the host option, making ansible apply changes to all hostnames for a given user. This option cannot be used when creating users



27
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_user.rb', line 27

attribute :host_all

#nameString

Returns name of the user (role) to add or remove.

Returns:

  • (String)

    name of the user (role) to add or remove



11
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_user.rb', line 11

attribute :name

#passwordString?

Returns set the user’s password.

Returns:

  • (String, nil)

    set the user’s password.



15
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_user.rb', line 15

attribute :password

#privArray<String>, ...

Returns MySQL privileges string in the format: C(db.table:priv1,priv2).

Returns:

  • (Array<String>, String, nil)

    MySQL privileges string in the format: C(db.table:priv1,priv2)



31
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_user.rb', line 31

attribute :priv

#sql_log_bin:yes, ...

Returns Whether binary logging should be enabled or disabled for the connection.

Returns:

  • (:yes, :no, nil)

    Whether binary logging should be enabled or disabled for the connection.



39
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_user.rb', line 39

attribute :sql_log_bin

#state:present, ...

Returns Whether the user should exist. When C(absent), removes the user.

Returns:

  • (:present, :absent, nil)

    Whether the user should exist. When C(absent), removes the user.



43
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_user.rb', line 43

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.



51
# File 'lib/ansible/ruby/modules/generated/core/database/mysql/mysql_user.rb', line 51

attribute :update_password