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
150dd230
Commit
150dd230
authored
Sep 09, 2013
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'kavink-devel' into devel
parents
59099b76
bcc2a4b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
lib/ansible/playbook/__init__.py
+2
-1
lib/ansible/playbook/play.py
+1
-1
No files found.
lib/ansible/playbook/__init__.py
View file @
150dd230
...
...
@@ -573,8 +573,9 @@ class PlayBook(object):
host_list
=
self
.
_list_available_hosts
(
play
.
hosts
)
# Set max_fail_pct to 0, So if any hosts fails, bail out
if
task
.
any_errors_fatal
and
len
(
host_list
)
<
hosts_count
:
host_list
=
None
play
.
max_fail_pct
=
0
# If threshold for max nodes failed is exceeded , bail out.
if
(
hosts_count
-
len
(
host_list
))
>
int
((
play
.
max_fail_pct
)
/
100.0
*
hosts_count
):
...
...
lib/ansible/playbook/play.py
View file @
150dd230
...
...
@@ -111,7 +111,7 @@ class Play(object):
self
.
transport
=
ds
.
get
(
'connection'
,
self
.
playbook
.
transport
)
self
.
gather_facts
=
ds
.
get
(
'gather_facts'
,
None
)
self
.
remote_port
=
self
.
remote_port
self
.
any_errors_fatal
=
ds
.
get
(
'any_errors_fatal'
,
False
)
self
.
any_errors_fatal
=
utils
.
boolean
(
ds
.
get
(
'any_errors_fatal'
,
'false'
)
)
self
.
accelerate
=
utils
.
boolean
(
ds
.
get
(
'accelerate'
,
'false'
))
self
.
accelerate_port
=
ds
.
get
(
'accelerate_port'
,
None
)
self
.
max_fail_pct
=
int
(
ds
.
get
(
'max_fail_percentage'
,
100
))
...
...
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