mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
ANSIBLE_SSH_CONTROL_PATH_DIR option added (#18342)
* ANSIBLE_SSH_CONTROL_PATH_DIR option added This removes the hardcoded value ( $HOME/.ansible/cp ) from ssh.py. User is able to change the ControlPath directory ( the one that replaces %(directory)s ). Fixes #18325 * Added config option in ansible.cfg
This commit is contained in:
parent
9547d6b422
commit
b18263cf36
3 changed files with 9 additions and 1 deletions
|
@ -228,7 +228,7 @@ class Connection(ConnectionBase):
|
|||
self._persistent = True
|
||||
|
||||
if not controlpath:
|
||||
cpdir = unfrackpath(u'$HOME/.ansible/cp')
|
||||
cpdir = unfrackpath(C.ANSIBLE_SSH_CONTROL_PATH_DIR)
|
||||
b_cpdir = to_bytes(cpdir, errors='surrogate_or_strict')
|
||||
|
||||
# The directory must exist and be writable.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue