Hi,
I’m just getting started with Ansible roles, and hit an error on my first attempt. Any help on debugging would be appreciated.
[ansible@localhost deploy]$ ansible-playbook -c ssh --private-key=~/.ssh/AWSVBT.pem -vvvv couchbase.yml
Traceback (most recent call last):
File “/usr/bin/ansible-playbook”, line 269, in
sys.exit(main(sys.argv[1:]))
File “/usr/bin/ansible-playbook”, line 209, in main
pb.run()
File “/usr/lib/python2.6/site-packages/ansible/playbook/init.py”, line 229, in run
play = Play(self, play_ds, play_basedir)
File “/usr/lib/python2.6/site-packages/ansible/playbook/play.py”, line 130, in init
self._tasks = self._load_tasks(self._ds.get(‘tasks’, ), load_vars)
File “/usr/lib/python2.6/site-packages/ansible/playbook/play.py”, line 536, in _load_tasks
x[‘role_name’] = new_role
TypeError: ‘str’ object does not support item assignment
couchbase.yml looks like: