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: