Hi Alejandro, 

Maybe you have some malformed .yml file.

El lunes, 6 de julio de 2015, 17:05:42 (UTC-3), Alejandro Ferrari escribió:
>
> Hi Guys, 
>
> Any know why I get this error?
>
> ansible-playbook -vv /etc/ansible/roles/env-stb/channels1.yml
> Traceback (most recent call last):
>   File "/usr/bin/ansible-playbook", line 324, in <module>
>     sys.exit(main(sys.argv[1:]))
>   File "/usr/bin/ansible-playbook", line 264, in main
>     pb.run()
>   File "/usr/lib/pymodules/python2.7/ansible/playbook/__init__.py", line 
> 310, in run
>     play = Play(self, play_ds, play_basedir, 
> vault_password=self.vault_password)
>   File "/usr/lib/pymodules/python2.7/ansible/playbook/play.py", line 103, 
> in __init__
>     ds = self._load_roles(self.roles, ds)
>   File "/usr/lib/pymodules/python2.7/ansible/playbook/play.py", line 440, 
> in _load_roles
>     roles = self._build_role_dependencies(roles, [], {})
>   File "/usr/lib/pymodules/python2.7/ansible/playbook/play.py", line 274, 
> in _build_role_dependencies
>     defaults_data = utils.parse_yaml_from_file(defaults, 
> vault_password=self.vault_password)
>   File "/usr/lib/pymodules/python2.7/ansible/utils/__init__.py", line 780, 
> in parse_yaml_from_file
>     process_yaml_error(exc, data, path, show_content)
>   File "/usr/lib/pymodules/python2.7/ansible/utils/__init__.py", line 706, 
> in process_yaml_error
>     probline = data.split("\n")[mark.line]
> IndexError: list index out of range
>
> Run in ansible 1.9.2
>
> My playbook is really simple:
>
> ---
>
> # Default roles for all the servers.
> - hosts: stb-channels1
>   roles:
>     - jdk7
>     - tomcat7
>     - tomcat7-desktop-webserver
>     - tomcat7-mobile-banking-server
>     - tomcat7-mobile-banking-portal
>     - tomcat7-tas-banking-server
>     - tomcat7-tas-banking-portal
>
> Some advice?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/434c8d3b-cfda-4074-8ff0-ea9b7c1ba7ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to