diff --git a/v2/ansible/playbook/play.py b/v2/ansible/playbook/play.py index c7f89888b87..01bc275e940 100644 --- a/v2/ansible/playbook/play.py +++ b/v2/ansible/playbook/play.py @@ -144,7 +144,7 @@ class Play(Base, Taggable, Become): else: raise ValueError except ValueError: - raise AnsibleParsingError("Vars in a playbook must be specified as a dictionary, or a list of dictionaries", obj=ds) + raise AnsibleParserError("Vars in a playbook must be specified as a dictionary, or a list of dictionaries", obj=ds) def _load_tasks(self, attr, ds): ''' diff --git a/v2/ansible/plugins/strategies/__init__.py b/v2/ansible/plugins/strategies/__init__.py index 9b26ff23a7f..d01360463b6 100644 --- a/v2/ansible/plugins/strategies/__init__.py +++ b/v2/ansible/plugins/strategies/__init__.py @@ -303,7 +303,7 @@ class StrategyBase: data = self._loader.load_from_file(included_file._filename) if not isinstance(data, list): - raise AnsibleParsingError("included task files must contain a list of tasks", obj=included_file._task._ds) + raise AnsibleParserError("included task files must contain a list of tasks", obj=included_file._task._ds) is_handler = isinstance(included_file._task, Handler) block_list = load_list_of_blocks(