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
9f29e39d
Commit
9f29e39d
authored
Aug 12, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
give more matching options for ansible-pull
parent
e46b1e8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
lib/ansible/cli/pull.py
+4
-1
No files found.
lib/ansible/cli/pull.py
View file @
9f29e39d
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
########################################################
########################################################
import
datetime
import
datetime
import
os
import
os
import
platform
import
random
import
random
import
shutil
import
shutil
import
socket
import
socket
...
@@ -107,7 +108,9 @@ class PullCLI(CLI):
...
@@ -107,7 +108,9 @@ class PullCLI(CLI):
# Build Checkout command
# Build Checkout command
# Now construct the ansible command
# Now construct the ansible command
limit_opts
=
'localhost:
%
s:127.0.0.1'
%
socket
.
getfqdn
()
node
=
platform
.
node
()
host
=
socket
.
getfqdn
()
limit_opts
=
'localhost:
%
s:127.0.0.1'
%
':'
.
join
(
set
([
host
,
node
,
host
.
split
(
'.'
)[
0
],
node
.
split
(
'.'
)[
0
]]))
base_opts
=
'-c local "
%
s"'
%
limit_opts
base_opts
=
'-c local "
%
s"'
%
limit_opts
if
self
.
options
.
verbosity
>
0
:
if
self
.
options
.
verbosity
>
0
:
base_opts
+=
' -
%
s'
%
''
.
join
([
"v"
for
x
in
range
(
0
,
self
.
options
.
verbosity
)
])
base_opts
+=
' -
%
s'
%
''
.
join
([
"v"
for
x
in
range
(
0
,
self
.
options
.
verbosity
)
])
...
...
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