[ansible_user@ip-10-135-203-236 playbooks]$ ansible-playbook ec2plays/ec2advancedprovision.yml --syntax-check -vvv
Using /etc/ansible/ansible.cfg as config file
ERROR! Unexpected Exception: zero length field name in format
the full traceback was:
Traceback (most recent call last):
File “/usr/bin/ansible-playbook”, line 92, in
exit_code = cli.run()
File “/usr/lib/python2.6/site-packages/ansible/cli/playbook.py”, line 154, in run
results = pbex.run()
File “/usr/lib/python2.6/site-packages/ansible/executor/playbook_executor.py”, line 73, in run
pb = Playbook.load(playbook_path, variable_manager=self._variable_manager, loader=self._loader)
File “/usr/lib/python2.6/site-packages/ansible/playbook/init.py”, line 53, in load
pb._load_playbook_data(file_name=file_name, variable_manager=variable_manager)
File “/usr/lib/python2.6/site-packages/ansible/playbook/init.py”, line 98, in _load_playbook_data
entry_obj = Play.load(entry, variable_manager=variable_manager, loader=self._loader)
File “/usr/lib/python2.6/site-packages/ansible/playbook/play.py”, line 115, in load
return p.load_data(data, variable_manager=variable_manager, loader=loader)
File “/usr/lib/python2.6/site-packages/ansible/playbook/base.py”, line 206, in load_data
self._attributes[name] = method(name, ds[name])
File “/usr/lib/python2.6/site-packages/ansible/playbook/play.py”, line 167, in _load_tasks
return load_list_of_blocks(ds=ds, play=self, variable_manager=self._variable_manager, loader=self._loader)
File “/usr/lib/python2.6/site-packages/ansible/playbook/helpers.py”, line 58, in load_list_of_blocks
loader=loader
File “/usr/lib/python2.6/site-packages/ansible/playbook/block.py”, line 79, in load
return b.load_data(data, variable_manager=variable_manager, loader=loader)
File “/usr/lib/python2.6/site-packages/ansible/playbook/base.py”, line 206, in load_data
self._attributes[name] = method(name, ds[name])
File “/usr/lib/python2.6/site-packages/ansible/playbook/block.py”, line 115, in _load_block
use_handlers=self._use_handlers,
File “/usr/lib/python2.6/site-packages/ansible/playbook/helpers.py”, line 244, in load_list_of_tasks
t = Task.load(task_ds, block=block, role=role, task_include=task_include, variable_manager=variable_manager, loader=loader)
File “/usr/lib/python2.6/site-packages/ansible/playbook/task.py”, line 135, in load
return t.load_data(data, variable_manager=variable_manager, loader=loader)
File “/usr/lib/python2.6/site-packages/ansible/playbook/base.py”, line 195, in load_data
ds = self.preprocess_data(ds)
File “/usr/lib/python2.6/site-packages/ansible/playbook/task.py”, line 175, in preprocess_data
(action, args, delegate_to) = args_parser.parse()
File “/usr/lib/python2.6/site-packages/ansible/parsing/mod_args.py”, line 281, in parse
action, args = self._normalize_parameters(thing, additional_args=additional_args)
File “/usr/lib/python2.6/site-packages/ansible/parsing/mod_args.py”, line 158, in _normalize_parameters
(action, args) = self._normalize_new_style_args(thing)
File “/usr/lib/python2.6/site-packages/ansible/parsing/mod_args.py”, line 238, in _normalize_new_style_args
(action, args) = self._split_module_string(thing)
File “/usr/lib/python2.6/site-packages/ansible/parsing/mod_args.py”, line 103, in _split_module_string
tokens = split_args(module_string)
File “/usr/lib/python2.6/site-packages/ansible/parsing/splitter.py”, line 259, in split_args
raise AnsibleParserError(“failed at splitting arguments, either an unbalanced jinja2 block or quotes: {}”.format(args))
ValueError: zero length field name in format