getent
Collection: builtin
Full Name: parallax.builtin.getent
Aliases: ansible.builtin.getent, getent
Synopsis
Manage getent
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| database | string | yes | The name of a getent database supported by the target system (passwd, group, hosts, etc) | |
| key | string | Key to lookup in the database | ||
| split | string | Character used to split the database values into lists/arrays such as ‘:’ or ’ ' | ||
| fail_key | bool | true | If true, the task will fail if the key is not found | |
| service | string | Override all databases with the specified service |
Example
- name: Example getent task
getent:
database: <your_database>