mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update docs.
This commit is contained in:
parent
bfe8437a21
commit
19ef7b3eeb
1 changed files with 5 additions and 0 deletions
|
@ -61,18 +61,23 @@ author: Brian Coca
|
|||
EXAMPLES = '''
|
||||
# get root user info
|
||||
- getent: database=passwd key=root
|
||||
register: root_info
|
||||
|
||||
# get all groups
|
||||
- getent: database=group split=':'
|
||||
register: groups
|
||||
|
||||
# get all hosts, split by tab
|
||||
- getent: database=hosts
|
||||
register: hosts
|
||||
|
||||
# get http service info, no error if missing
|
||||
- getent: database=services key=http fail_key=False
|
||||
register: http_info
|
||||
|
||||
# get user password hash (requires sudo/root)
|
||||
- getent: database=shadow key=www-data split=:
|
||||
register: pw_hash
|
||||
|
||||
'''
|
||||
|
||||
|
|
Loading…
Reference in a new issue