diff --git a/lib/ansible/modules/commands/shell.py b/lib/ansible/modules/commands/shell.py index dd97653c9a2..264f373bba4 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 = '''