Revert "Set display_skipped_host to no"

display_skipped_hosts=no has the unfortunate side effect of not showing
the running task name until the task has returned. The reason is b/c the
task name won't be shown at all if all hosts are skipped, but that won't
be known until the task returns.

For long running tasks, this can be quite misleading as the running task
name is not seen until it returns. This makes debugging difficult, and users
don't know what task is actually running until it's completed.

There is an option to show the task name as soon as it starts executing,
but it was not added until ansible-2.9:
https://github.com/ansible/ansible/pull/53819

See also https://github.com/ansible/ansible/issues/51042

This reverts commit 403535c572.

Change-Id: Ia9e291d476d3143b194ce06002a0c1745cf3ef94
(cherry picked from commit efe21cdecb)
This commit is contained in:
James Slagle 2019-11-05 16:42:20 -05:00 committed by Alex Schultz
parent 7ecdc77ec3
commit dea009bf19
1 changed files with 0 additions and 2 deletions

View File

@ -92,8 +92,6 @@ def write_default_ansible_cfg(work_dir,
config.set('defaults', 'action_plugins', action_plugins_path)
config.set('defaults', 'lookup_plugins', lookups_path)
config.set('defaults', 'filter_plugins', filter_plugins_path)
# suppress tasks if all hosts skip, was previously full_skip callback
config.set('defaults', 'display_skipped_hosts', 'no')
log_path = os.path.join(work_dir, 'ansible.log')
config.set('defaults', 'log_path', log_path)