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

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/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, fix_inclusion, #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).



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

attribute :database

#fail_key:yes, ...

Returns If a supplied key is missing this will make the task fail if C(yes).

Returns:

  • (:yes, :no, nil)

    If a supplied key is missing this will make the task fail if C(yes).



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

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.



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

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.



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

attribute :split