From 798dc4b43883e044951b3246c1dfd926caa04879 Mon Sep 17 00:00:00 2001 From: Daniel-Sanchez-Fabregas <33929811+Daniel-Sanchez-Fabregas@users.noreply.github.com> Date: Tue, 21 Aug 2018 15:42:41 +0200 Subject: [PATCH] In expect module documentation add `no_log` to password change example (#44436) * Update expect.py Recommend not showing passwords in the logs +label: docsite_pr * Fix unicode quotes --- lib/ansible/modules/commands/expect.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/commands/expect.py b/lib/ansible/modules/commands/expect.py index c612947b33..829e61568f 100644 --- a/lib/ansible/modules/commands/expect.py +++ b/lib/ansible/modules/commands/expect.py @@ -77,6 +77,8 @@ EXAMPLES = r''' command: passwd username responses: (?i)password: "MySekretPa$$word" + # you don't want to show passwords in your logs + no_log: true - name: Generic question with multiple different responses expect: