getent

Collection: builtin

Full Name: parallax.builtin.getent

Aliases: ansible.builtin.getent, getent

Synopsis

Manage getent

Parameters

NameTypeRequiredDefaultDescription
databasestringyesThe name of a getent database supported by the target system (passwd, group, hosts, etc)
keystringKey to lookup in the database
splitstringCharacter used to split the database values into lists/arrays such as ‘:’ or ’ '
fail_keybooltrueIf true, the task will fail if the key is not found
servicestringOverride all databases with the specified service

Example

- name: Example getent task
  getent:
    database: <your_database>