Fixing no_log for the playbook level use

Fixes #8647
This commit is contained in:
James Cammarata 2014-08-19 10:35:01 -05:00
parent 8648fa175c
commit 8a5675ca9f
2 changed files with 5 additions and 3 deletions

View file

@ -122,7 +122,7 @@ class Task(object):
self.su = utils.boolean(ds.get('su', play.su))
self.environment = ds.get('environment', {})
self.role_name = role_name
self.no_log = utils.boolean(ds.get('no_log', "false"))
self.no_log = utils.boolean(ds.get('no_log', "false")) or self.play.no_log
self.run_once = utils.boolean(ds.get('run_once', 'false'))
#Code to allow do until feature in a Task