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:
parent
4c8808ec9d
commit
c89dfad846
1 changed files with 6 additions and 0 deletions
|
@ -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 = '''
|
||||||
|
|
Loading…
Reference in a new issue