mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
commit
ddafed4403
6 changed files with 79 additions and 45 deletions
|
@ -215,9 +215,6 @@ class PlayContext(Base):
|
|||
if play.become_user:
|
||||
self.become_user = play.become_user
|
||||
|
||||
# non connection related
|
||||
self.no_log = play.no_log
|
||||
|
||||
if play.force_handlers is not None:
|
||||
self.force_handlers = play.force_handlers
|
||||
|
||||
|
@ -243,8 +240,6 @@ class PlayContext(Base):
|
|||
# general flags (should we move out?)
|
||||
if options.verbosity:
|
||||
self.verbosity = options.verbosity
|
||||
#if options.no_log:
|
||||
# self.no_log = boolean(options.no_log)
|
||||
if options.check:
|
||||
self.check_mode = boolean(options.check)
|
||||
if hasattr(options, 'force_handlers') and options.force_handlers:
|
||||
|
@ -341,6 +336,10 @@ class PlayContext(Base):
|
|||
if task._local_action:
|
||||
setattr(new_info, 'connection', 'local')
|
||||
|
||||
# set no_log to default if it was not previouslly set
|
||||
if new_info.no_log is None:
|
||||
new_info.no_log = C.DEFAULT_NO_LOG
|
||||
|
||||
return new_info
|
||||
|
||||
def make_become_cmd(self, cmd, executable=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue