Quantcast
Channel: Active questions tagged vagrant - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 64

How to setup testkitchen with ansible-provisioning from localhost for different vagrant-vms?

$
0
0

As pointed out here, testkitchen is in principable usable with ansible if the right plugins are installed.

Now I've done all the installing and am at the point, where I wonder, what I missunderstood:

As a driver I use vagrant and I thought it might be a good idea to use the vagrant-host as the machine which does the ansible-provisoning since the ssh-access is obviously cared for by vagrant and python is installed on my boxes per default. Now, when I look at my logs, I see:

Setting up ansible (2.4.1.0-1ppa~xenial) ...

How can I prevent the installing of ansible? How can I tell testkitchen to use localhost as the machine which provisions the vagrant vms?

To be more clear, I am trying to find a configuration for testkitchen (as seen e.g. here under "Example .kitchen.yml file") that can accomplish this.

So far I got this configuration in my .kitchen.yml:

[...]provisioner:    name: ansible_playbook    hosts: localhost    require_chef_for_busser: false    require_ruby_for_busser: false    playbook: server.yml[...]

This still installs ansible on the vagrant boxes, which I don't want.


Viewing all articles
Browse latest Browse all 64

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>