Update shell.py (#44477)

* Update shell.py

<!--- Your description here -->
Add example for disabling warnings to shell module
+label: docsite_pr

* Fix PEP8 issues
This commit is contained in:
Steve Dodd 2018-08-22 20:31:55 -06:00 committed by Jordan Borean
parent 4c8808ec9d
commit c89dfad846

View file

@ -119,6 +119,12 @@ EXAMPLES = '''
args: args:
executable: /usr/bin/expect executable: /usr/bin/expect
delegate_to: localhost 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 = ''' RETURN = '''