Testing a role in molecule - ansible_host variable is set to 127.0.0.1?

I haven't been in your exact scenario, but I have a similar need when testing a role that configures multiple docker containers. Since nested docker wasn't really working well, I have molecule configure the localhost of my Vagrant VM.

To do this, I set the playbook.yml file in my default scenario to use a local ansible connection:
I haven't been in your exact scenario, but I have a similar need when testing a role that configures multiple docker containers. Since nested docker wasn't really working well, I have molecule configure the localhost of my Vagrant VM.

To do this, I set the playbook.yml file in my default scenario to use a local ansible connection:

---
- name: Converge
  hosts: localhost
  connection: local
/r/ansible Thread