mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
terminate immediately on a failure
This commit is contained in:
parent
4552fa8592
commit
20a48c6bdf
3 changed files with 15 additions and 5 deletions
|
@ -30,7 +30,7 @@ class Play(object):
|
|||
'handlers', 'remote_user', 'remote_port',
|
||||
'sudo', 'sudo_user', 'transport', 'playbook',
|
||||
'tags', 'gather_facts', 'serial', '_ds', '_handlers', '_tasks',
|
||||
'basedir'
|
||||
'basedir', 'any_errors_fatal'
|
||||
]
|
||||
|
||||
# to catch typos and so forth -- these are userland names
|
||||
|
@ -38,7 +38,8 @@ class Play(object):
|
|||
VALID_KEYS = [
|
||||
'hosts', 'name', 'vars', 'vars_prompt', 'vars_files',
|
||||
'tasks', 'handlers', 'user', 'port', 'include',
|
||||
'sudo', 'sudo_user', 'connection', 'tags', 'gather_facts', 'serial'
|
||||
'sudo', 'sudo_user', 'connection', 'tags', 'gather_facts', 'serial',
|
||||
'any_errors_fatal'
|
||||
]
|
||||
|
||||
# *************************************************
|
||||
|
@ -77,6 +78,7 @@ class Play(object):
|
|||
self.gather_facts = ds.get('gather_facts', None)
|
||||
self.serial = int(utils.template(basedir, ds.get('serial', 0), self.vars))
|
||||
self.remote_port = utils.template(basedir, self.remote_port, self.vars)
|
||||
self.any_errors_fatal = ds.get('any_errors_fatal', False)
|
||||
|
||||
self._update_vars_files_for_host(None)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue