1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

have always_run override check mode for a task

Fixes #13418
This commit is contained in:
Brian Coca 2015-12-08 09:20:49 -08:00
parent 9c4eae5253
commit d4ccb0be59

View file

@ -395,6 +395,10 @@ class PlayContext(Base):
# set become defaults if not previouslly set
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
def make_become_cmd(self, cmd, executable=None):