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
97e3e967
Commit
97e3e967
authored
Sep 20, 2013
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'devel' of
https://github.com/jflorian/ansible
into jflorian-devel
parents
3569a2ff
c8a5aabf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
bin/ansible-pull
+9
-1
docs/man/man1/ansible-pull.1.asciidoc.in
+6
-0
No files found.
bin/ansible-pull
View file @
97e3e967
...
...
@@ -103,6 +103,10 @@ def main(args):
help
=
'purge checkout after playbook run'
)
parser
.
add_option
(
'-o'
,
'--only-if-changed'
,
dest
=
'ifchanged'
,
default
=
False
,
action
=
'store_true'
,
help
=
'only run the playbook if the repository has been updated'
)
parser
.
add_option
(
'-f'
,
'--force'
,
dest
=
'force'
,
default
=
False
,
action
=
'store_true'
,
help
=
'run the playbook even if the repository could '
'not be updated'
)
parser
.
add_option
(
'-d'
,
'--directory'
,
dest
=
'dest'
,
default
=
None
,
help
=
'directory to checkout repository to'
)
parser
.
add_option
(
'-U'
,
'--url'
,
dest
=
'url'
,
default
=
None
,
...
...
@@ -146,7 +150,11 @@ def main(args):
)
rc
,
out
=
_run
(
cmd
)
if
rc
!=
0
:
return
rc
if
options
.
force
:
print
(
"Unable to update repository. Continuing with (forced) "
"run of playbook."
)
else
:
return
rc
elif
options
.
ifchanged
and
'"changed": true'
not
in
out
:
print
"Repository has not changed, quitting."
return
0
...
...
docs/man/man1/ansible-pull.1.asciidoc.in
View file @
97e3e967
...
...
@@ -63,6 +63,12 @@ URL of the playbook repository to checkout.
Branch/Tag/Commit to checkout. If not provided, uses default behavior
of module used to check out playbook repository.
*-f*, *--force*::
Force running of playbook even if unable to update playbook repository. This
can be useful, for example, to enforce run-time state when a network
connection may not always be up or possible.
*-i* 'PATH', *--inventory=*'PATH'::
The 'PATH' to the inventory hosts file. This can be a relative path within
...
...
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