Class: Ansible::Ruby::Modules::Getent
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Getent
- 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
-
#database ⇒ String
The name of a getent database supported by the target system (passwd, group, hosts, etc).
-
#fail_key ⇒ :yes, ...
If a supplied key is missing this will make the task fail if C(yes).
-
#key ⇒ String?
Key from which to return values from the specified database, otherwise the full contents are returned.
-
#split ⇒ String?
Character used to split the database values into lists/arrays such as ‘:’ or ‘ ’, otherwise it will try to pick one depending on the database.
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
#database ⇒ String
Returns 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).
24 |
# File 'lib/ansible/ruby/modules/generated/system/getent.rb', line 24 attribute :fail_key |
#key ⇒ String?
Returns 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 |
#split ⇒ String?
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.
20 |
# File 'lib/ansible/ruby/modules/generated/system/getent.rb', line 20 attribute :split |