Update shell.py (#44477)

* Update shell.py

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

* Fix PEP8 issues
pull/30467/head
Steve Dodd 6 years ago committed by Jordan Borean
parent 4c8808ec9d
commit c89dfad846

@ -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 = '''

Loading…
Cancel
Save