mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
executable option to git module
This commit is contained in:
parent
0ee236bf57
commit
5243bd5fa3
1 changed files with 9 additions and 1 deletions
|
@ -73,6 +73,13 @@ options:
|
||||||
- If C(yes), repository will be updated using the supplied
|
- If C(yes), repository will be updated using the supplied
|
||||||
remote. Otherwise the repo will be left untouched.
|
remote. Otherwise the repo will be left untouched.
|
||||||
Prior to 1.2, this was always 'yes' and could not be disabled.
|
Prior to 1.2, this was always 'yes' and could not be disabled.
|
||||||
|
executable:
|
||||||
|
required: false
|
||||||
|
default: null
|
||||||
|
version_added: "1.4"
|
||||||
|
description:
|
||||||
|
- Path to git executable to use. If not supplied,
|
||||||
|
the normal mechanism for resolving binary paths will be used.
|
||||||
notes:
|
notes:
|
||||||
- If the task seems to be hanging, first verify remote host is in C(known_hosts).
|
- If the task seems to be hanging, first verify remote host is in C(known_hosts).
|
||||||
SSH will prompt user to authorize the first contact with a remote host. One solution is to add
|
SSH will prompt user to authorize the first contact with a remote host. One solution is to add
|
||||||
|
@ -304,6 +311,7 @@ def main():
|
||||||
force=dict(default='yes', type='bool'),
|
force=dict(default='yes', type='bool'),
|
||||||
depth=dict(default=None, type='int'),
|
depth=dict(default=None, type='int'),
|
||||||
update=dict(default='yes', type='bool'),
|
update=dict(default='yes', type='bool'),
|
||||||
|
executable=dict(default=None),
|
||||||
),
|
),
|
||||||
supports_check_mode=True
|
supports_check_mode=True
|
||||||
)
|
)
|
||||||
|
@ -315,8 +323,8 @@ def main():
|
||||||
force = module.params['force']
|
force = module.params['force']
|
||||||
depth = module.params['depth']
|
depth = module.params['depth']
|
||||||
update = module.params['update']
|
update = module.params['update']
|
||||||
|
git_path = module.params['executable'] or module.get_bin_path('git', True)
|
||||||
|
|
||||||
git_path = module.get_bin_path('git', True)
|
|
||||||
gitconfig = os.path.join(dest, '.git', 'config')
|
gitconfig = os.path.join(dest, '.git', 'config')
|
||||||
|
|
||||||
rc, out, err, status = (0, None, None, None)
|
rc, out, err, status = (0, None, None, None)
|
||||||
|
|
Loading…
Reference in a new issue