From ccf8a7da8283e72ae8ad565d80c5a100477ea8d2 Mon Sep 17 00:00:00 2001 From: MaxBrady <73909034+MaxBrady@users.noreply.github.com> Date: Thu, 2 Sep 2021 12:27:17 -0700 Subject: [PATCH] Modify getent example; closes #75624. (#75633) * Adds "ansible_facts." in front of each getent example. --- lib/ansible/modules/getent.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ansible/modules/getent.py b/lib/ansible/modules/getent.py index e5c7aaf2ad1..0a9fdc35969 100644 --- a/lib/ansible/modules/getent.py +++ b/lib/ansible/modules/getent.py @@ -57,20 +57,20 @@ EXAMPLES = ''' database: passwd key: root - debug: - var: getent_passwd + var: ansible_facts.getent_passwd - name: Get all groups getent: database: group split: ':' - debug: - var: getent_group + var: ansible_facts.getent_group - name: Get all hosts, split by tab getent: database: hosts - debug: - var: getent_hosts + var: ansible_facts.getent_hosts - name: Get http service info, no error if missing getent: @@ -78,7 +78,7 @@ EXAMPLES = ''' key: http fail_key: False - debug: - var: getent_services + var: ansible_facts.getent_services - name: Get user password hash (requires sudo/root) getent: @@ -86,7 +86,7 @@ EXAMPLES = ''' key: www-data split: ':' - debug: - var: getent_shadow + var: ansible_facts.getent_shadow ''' import traceback