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
b6c6ed91
Commit
b6c6ed91
authored
Aug 28, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implemented not showing skipped hosts config
parent
514fa73f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
lib/ansible/plugins/callback/__init__.py
+5
-4
lib/ansible/plugins/callback/default.py
+5
-4
lib/ansible/plugins/strategies/__init__.py
+2
-1
No files found.
lib/ansible/plugins/callback/__init__.py
View file @
b6c6ed91
...
...
@@ -200,10 +200,11 @@ class CallbackBase:
self
.
runner_on_ok
(
host
,
result
.
_result
)
def
v2_runner_on_skipped
(
self
,
result
):
host
=
result
.
_host
.
get_name
()
#FIXME, get item to pass through
item
=
None
self
.
runner_on_skipped
(
host
,
item
)
if
not
C
.
DISPLAY_SKIPPED_HOSTS
:
host
=
result
.
_host
.
get_name
()
#FIXME, get item to pass through
item
=
None
self
.
runner_on_skipped
(
host
,
item
)
def
v2_runner_on_unreachable
(
self
,
result
):
host
=
result
.
_host
.
get_name
()
...
...
lib/ansible/plugins/callback/default.py
View file @
b6c6ed91
...
...
@@ -77,10 +77,11 @@ class CallbackModule(CallbackBase):
self
.
_handle_warnings
(
result
.
_result
)
def
v2_runner_on_skipped
(
self
,
result
):
msg
=
"skipping: [
%
s]"
%
result
.
_host
.
get_name
()
if
(
self
.
_display
.
verbosity
>
0
or
'_ansible_verbose_always'
in
result
.
_result
)
and
not
'_ansible_verbose_override'
in
result
.
_result
:
msg
+=
" =>
%
s"
%
self
.
_dump_results
(
result
.
_result
)
self
.
_display
.
display
(
msg
,
color
=
'cyan'
)
if
not
C
.
DISPLAY_SKIPPED_HOSTS
:
msg
=
"skipping: [
%
s]"
%
result
.
_host
.
get_name
()
if
(
self
.
_display
.
verbosity
>
0
or
'_ansible_verbose_always'
in
result
.
_result
)
and
not
'_ansible_verbose_override'
in
result
.
_result
:
msg
+=
" =>
%
s"
%
self
.
_dump_results
(
result
.
_result
)
self
.
_display
.
display
(
msg
,
color
=
'cyan'
)
def
v2_runner_on_unreachable
(
self
,
result
):
self
.
_display
.
display
(
"fatal: [
%
s]: UNREACHABLE! =>
%
s"
%
(
result
.
_host
.
get_name
(),
self
.
_dump_results
(
result
.
_result
)),
color
=
'red'
)
...
...
lib/ansible/plugins/strategies/__init__.py
View file @
b6c6ed91
...
...
@@ -22,7 +22,8 @@ __metaclass__ = type
from
six.moves
import
queue
as
Queue
import
time
from
ansible.errors
import
*
from
ansible
import
constants
as
C
from
ansible.errors
import
AnsibleError
,
AnsibleParserError
from
ansible.executor.task_result
import
TaskResult
from
ansible.inventory.host
import
Host
from
ansible.inventory.group
import
Group
...
...
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