Molecule with vagrant driver #4042
Replies: 3 comments
-
As I can see the support for the drivers (during init) has been removed... I can't imagine what idea is behind this. |
Beta Was this translation helpful? Give feedback.
-
I still have the same problem, would be nice to have working driver for vagrant as is widely used. And not every solution can be tested on docker (or containers). My current settings:
|
Beta Was this translation helpful? Give feedback.
-
As suggested from IRC, I just removed the |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm trying to use molecule with vagrant driver but I'm still receiving an error
Failed to connect to the host via ssh: ssh: Could not resolve hostname instance: Temporary failure in name resolution
steps to reproduce:
molecule init scenario -d vagrant --dependency-name galaxy --provisioner-name ansible pure
It creates structure
and then I do
molecule converge -s pure
and I have an error
fatal: [instance]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname instance: Temporary failure in name resolution", "unreachable": true}
To be honest parameters in init command are ignored and molecule.yml looks like this:
There is no indication to use vagrant
but even with an example from https://github.com/ansible-community/molecule-plugins/tree/main/doc/vagrant#documentation I'm receiving the same error the last thing what I tried is remove files:
but then I'm receiving an error
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "ERROR: Driver missing, install python-vagrant.\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
when command
molecule drivers
returns me╶──────────────────────────────────────────────────────────────────────────────────
azure
containers
default
docker
ec2
gce
podman
vagrant
I have checked molecule with docker driver, and it works without any problems
Additional info:
Beta Was this translation helpful? Give feedback.
All reactions