- name: download vagrant box ubuntu/trusty64
command: vagrant box add ubuntu/trusty64
What error are you getting?
Try to quote the command
- hosts: localhost
gather_facts: no
connection: local
tasks:
- name: download vagrant box ubuntu/trusty64
command: vagrant box add ubuntu/trusty64PLAY [localhost] **************************************************************
TASK: [download vagrant box ubuntu/trusty64] **********************************
changed: [localhost]
PLAY RECAP ********************************************************************
localhost : ok=1 changed=1 unreachable=0 failed=0
$ vagrant box list
ubuntu/trusty64 (virtualbox, 20150609.0.10)
Perhaps double check that your playbook doesn't have any funny, unprintable, characters in it.
What version of ansible?