have always_run override check mode for a task

Fixes #13418
pull/13132/head
Brian Coca 9 years ago
parent 9c4eae5253
commit d4ccb0be59

@ -395,6 +395,10 @@ class PlayContext(Base):
# set become defaults if not previouslly set # set become defaults if not previouslly set
task.set_become_defaults(new_info.become, new_info.become_method, new_info.become_user) task.set_become_defaults(new_info.become, new_info.become_method, new_info.become_user)
# have always_run override check mode
if task.always_run:
new_info.check_mode = False
return new_info return new_info
def make_become_cmd(self, cmd, executable=None): def make_become_cmd(self, cmd, executable=None):

Loading…
Cancel
Save