I've been trying to pass in command line options to the vagrant CLI, so that I can just provision a certain ansible tag, should I so desire.
I've got this working, but only by removing any spaces in my command line options. So:
ANSIBLE_ARGS='-t elasticsearch' vagrant provision <= this fails
ANSIBLE_ARGS='-telasticsearch' vagrant provision <= this works
My problem is that I can't figure out why I need to remove the blank space, esp. when the Vagrant docs seem to say it is allowed (
https://diigo.com/01od86)
I have tried putting ansible.raw_arguments = '-t elasticsearch' directly into the Vagrantfile too, which fails in the same manner.
Cheers,
Ben
(Vagrant 1.5.1)