From 19ef7b3eebf01b48efbfcb773c36031f2fb707d9 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 8 Aug 2014 11:51:03 -0400 Subject: [PATCH] Update docs. --- library/system/getent | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/system/getent b/library/system/getent index f00e0af1265..70568f11e0e 100644 --- a/library/system/getent +++ b/library/system/getent @@ -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 '''