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>
pull/72483/head
Simon Heimberg 4 years ago committed by GitHub
parent dbe43e071e
commit 7f86e0715c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -260,6 +260,14 @@ EXAMPLES = '''
- git: - git:
single_branch: yes single_branch: yes
branch: master 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 = ''' RETURN = '''

Loading…
Cancel
Save