hint in doc of git module to abort on missing http password (#72164)
* hint in doc of git module to abort on missing http password improves #69489 * fix syntax in doc of git module Co-authored-by: Matt Martz <matt@sivel.net> Co-authored-by: Matt Martz <matt@sivel.net>
This commit is contained in:
parent
dbe43e071e
commit
7f86e0715c
1 changed files with 8 additions and 0 deletions
|
@ -260,6 +260,14 @@ EXAMPLES = '''
|
|||
- git:
|
||||
single_branch: yes
|
||||
branch: master
|
||||
|
||||
- name: avoid hanging when http(s) password is missing
|
||||
git:
|
||||
repo: https://github.com/ansible/could-be-a-private-repo
|
||||
dest: /src/from-private-repo
|
||||
environment:
|
||||
GIT_TERMINAL_PROMPT: 0 # reports "terminal prompts disabled" on missing password
|
||||
# or GIT_ASKPASS: /bin/true # for git before version 2.3.0, reports "Authentication failed" on missing password
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
|
Loading…
Reference in a new issue