mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Update docs.
This commit is contained in:
@@ -61,18 +61,23 @@ author: Brian Coca
|
|||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# get root user info
|
# get root user info
|
||||||
- getent: database=passwd key=root
|
- getent: database=passwd key=root
|
||||||
|
register: root_info
|
||||||
|
|
||||||
# get all groups
|
# get all groups
|
||||||
- getent: database=group split=':'
|
- getent: database=group split=':'
|
||||||
|
register: groups
|
||||||
|
|
||||||
# get all hosts, split by tab
|
# get all hosts, split by tab
|
||||||
- getent: database=hosts
|
- getent: database=hosts
|
||||||
|
register: hosts
|
||||||
|
|
||||||
# get http service info, no error if missing
|
# get http service info, no error if missing
|
||||||
- getent: database=services key=http fail_key=False
|
- getent: database=services key=http fail_key=False
|
||||||
|
register: http_info
|
||||||
|
|
||||||
# get user password hash (requires sudo/root)
|
# get user password hash (requires sudo/root)
|
||||||
- getent: database=shadow key=www-data split=:
|
- getent: database=shadow key=www-data split=:
|
||||||
|
register: pw_hash
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user