Class: Ansible::Ruby::Modules::Getent

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/system/getent.rb

Overview

Runs getent against one of it’s various databases and returns information into the host’s facts, in a getent_<database> prefixed variable

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

#databaseString

Returns the name of a getent database supported by the target system (passwd, group, hosts, etc).

Returns:

  • (String)

    the name of a getent database supported by the target system (passwd, group, hosts, etc).



11
# File 'lib/ansible/ruby/modules/generated/extras/system/getent.rb', line 11

attribute :database

#fail_keyBoolean?

Returns If a supplied key is missing this will make the task fail if True.

Returns:

  • (Boolean, nil)

    If a supplied key is missing this will make the task fail if True



23
# File 'lib/ansible/ruby/modules/generated/extras/system/getent.rb', line 23

attribute :fail_key

#keyString?

Returns key from which to return values from the specified database, otherwise the full contents are returned.

Returns:

  • (String, nil)

    key from which to return values from the specified database, otherwise the full contents are returned.



15
# File 'lib/ansible/ruby/modules/generated/extras/system/getent.rb', line 15

attribute :key

#splitString?

Returns character used to split the database values into lists/arrays such as ‘:’ or ‘ ’, otherwise it will try to pick one depending on the database.

Returns:

  • (String, nil)

    character used to split the database values into lists/arrays such as ‘:’ or ‘ ’, otherwise it will try to pick one depending on the database



19
# File 'lib/ansible/ruby/modules/generated/extras/system/getent.rb', line 19

attribute :split