mirror of
https://github.com/ansible/ansible.git
synced 2026-08-03 08:03:05 +02:00
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- ansible-playbook, more robust handling of --list-hosts and undefined vars in hosts keyword.
|
||||
@@ -147,7 +147,13 @@ class PlaybookCLI(CLI):
|
||||
pb_dir = os.path.realpath(os.path.dirname(p['playbook']))
|
||||
loader.set_basedir(pb_dir)
|
||||
|
||||
msg = "\n play #%d (%s): %s" % (idx + 1, ','.join(play.hosts), play.name)
|
||||
# show host list if we were able to template into a list
|
||||
try:
|
||||
host_list = ','.join(play.hosts)
|
||||
except TypeError:
|
||||
host_list = ''
|
||||
|
||||
msg = "\n play #%d (%s): %s" % (idx + 1, host_list, play.name)
|
||||
mytags = set(play.tags)
|
||||
msg += '\tTAGS: [%s]' % (','.join(mytags))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user