Skip to content

provision fails with "ERROR: provided hosts list is empty" #1

@Sgoettschkes

Description

@Sgoettschkes

I am trying to run the plugin with my debian 7 base box which has ansible installed but not any specific host file in place. I am guessing the plugin wants to use the default hosts file.

Up until now, I am running the local ansible with the command
ansible-playbook -i 'localhost ansible_connection=local,' /path/to/playbook.yml
which bypasses the hosts file completly.

I did some digging and came across :raw_arguments, which can be used to bypass the hosts file as well:
:raw_arguments => "-i 'localhost ansible_connection=local,'"

As the config.rb is saying, this is a joker argument and I don't really feel good using it. I'd like to change it for the better. As far as I'm concerned, there should be no problem changing the default hosts file to something build in?

If this is in your interest as well, I'd see if I can find some time writing a pull request. I'm not really good at ruby or vagrant plugins, but I could give it a try I guess.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions