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:
Simon Heimberg 2020-11-04 17:19:06 +01:00 committed by GitHub
parent dbe43e071e
commit 7f86e0715c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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