From c89dfad846228b34251d3094aefd5b6a8eaceb04 Mon Sep 17 00:00:00 2001 From: Steve Dodd Date: Wed, 22 Aug 2018 20:31:55 -0600 Subject: [PATCH] Update shell.py (#44477) * Update shell.py Add example for disabling warnings to shell module +label: docsite_pr * Fix PEP8 issues --- lib/ansible/modules/commands/shell.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ansible/modules/commands/shell.py b/lib/ansible/modules/commands/shell.py index dd97653c9a..264f373bba 100644 --- a/lib/ansible/modules/commands/shell.py +++ b/lib/ansible/modules/commands/shell.py @@ -119,6 +119,12 @@ EXAMPLES = ''' args: executable: /usr/bin/expect delegate_to: localhost + +# Disabling warnings +- name: Using curl to connect to a host via SOCKS proxy (unsupported in uri). Ordinarily this would throw a warning. + shell: curl --socks5 localhost:9000 http://www.ansible.com + args: + warn: False ''' RETURN = '''