Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
86ba8f4d
Commit
86ba8f4d
authored
Jan 23, 2014
by
James Tanner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix git module parameters to conform to code standards
parent
9e52d5a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
CHANGELOG.md
+1
-1
library/source_control/git
+8
-8
No files found.
CHANGELOG.md
View file @
86ba8f4d
...
...
@@ -10,7 +10,7 @@ Major features/changes:
*
only_if, which is much older than when_foo and was deprecated, is similarly removed.
*
ssh connection plugin is now more efficient if you add 'pipelining=True' in ansible.cfg under
[
ssh_connection
]
, see example.cfg
*
localhost/127.0.0.1 is not required to be in inventory if referenced, if not in inventory, it does not implicitly appear in the 'all' group.
*
git module now takes ssh
opts and key
file parameters to override how git calls ssh
*
git module now takes ssh
_opts and key_
file parameters to override how git calls ssh
New modules:
...
...
library/source_control/git
View file @
86ba8f4d
...
...
@@ -49,7 +49,7 @@ options:
version_added: "1.5"
description:
- Add the hostkey for the repo url if not already added.
sshopts:
ssh
_
opts:
required: false
default: None
version_added: "1.5"
...
...
@@ -57,13 +57,13 @@ options:
- Creates a wrapper script and exports the path as GIT_SSH
which git then automatically uses to override ssh arguments.
An example value could be "-o StrictHostKeyChecking=no"
keyfile:
key
_
file:
requird: false
default: None
version_added: "1.5"
description:
- Uses the same wrapper method as sshopts to pass
"-i <keyfile>" to the ssh arguments used by git
- Uses the same wrapper method as ssh
_
opts to pass
"-i <key
_
file>" to the ssh arguments used by git
reference:
required: false
default: null
...
...
@@ -414,8 +414,8 @@ def main():
depth
=
dict
(
default
=
None
,
type
=
'int'
),
update
=
dict
(
default
=
'yes'
,
type
=
'bool'
),
accept_hostkey
=
dict
(
default
=
'no'
,
type
=
'bool'
),
keyfile
=
dict
(
default
=
None
,
required
=
False
),
sshopts
=
dict
(
default
=
None
,
required
=
False
),
key
_
file
=
dict
(
default
=
None
,
required
=
False
),
ssh
_
opts
=
dict
(
default
=
None
,
required
=
False
),
executable
=
dict
(
default
=
None
),
bare
=
dict
(
default
=
'no'
,
type
=
'bool'
),
),
...
...
@@ -433,8 +433,8 @@ def main():
reference
=
module
.
params
[
'reference'
]
git_path
=
module
.
params
[
'executable'
]
or
module
.
get_bin_path
(
'git'
,
True
)
key_file
=
module
.
params
[
'keyfile'
]
ssh_opts
=
module
.
params
[
'sshopts'
]
key_file
=
module
.
params
[
'key
_
file'
]
ssh_opts
=
module
.
params
[
'ssh
_
opts'
]
# create a wrapper script and export
# GIT_SSH=<path> as an environment variable
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment