SyntaxError in "/usr/local/bin/ansible-playbook"

50 views
Skip to first unread message
Message has been deleted

Yvonne Terki

unread,
Aug 21, 2015, 7:18:27 PM8/21/15
to Ansible Project

Hello,


When I do "vagrant provision" with that in VagrantFile:

config.vm.provision :ansible do |ansible|
  ansible
.playbook = "playbook.yml"
end


I get:

==> default: Running provisioner: ansible...
 
File "/usr/local/bin/ansible-playbook", line 218
   
print ''
           
^
SyntaxError: invalid syntax
Ansible failed to complete successfully. Any error output should be
visible above
. Please fix these errors and try again.

Sorry, but I'm beginner with Ansible and Vagrant.


Thanks!

Yvonne Terki

unread,
Aug 22, 2015, 5:59:38 AM8/22/15
to Ansible Project
The problem was that I installed Ansible with pip3 instead pip2.

Thanks!
Reply all
Reply to author
Forward
0 new messages