Questions tagged [molecule]

Molecule is a Python package designed to aid in the development and testing of Ansible roles.

Molecule is a Python package designed to aid in the development and testing of Ansible roles. It includes support for multiple instances, operating system distributions, virtualization providers, and test frameworks.

It leverages Vagrant, Docker, and OpenStack to manage virtual machines/containers, with support for multiple Vagrant providers (currently VirtualBox, Parallels, VMware Fusion, and Libvirt). Molecule supports Serverspec, Testinfra, or Goss (beta) to run tests. Molecule uses an Ansible playbook (playbook.yml), to execute the role and its tests.

Find the source on Github and the documentation on the official website.

139 questions
0
votes
1 answer

Generate VMs based on Ansible Inventory prior to playbook run

So I'm looking at creating a generic wrapper around the ansible-playbook command. What I'd like to do is spin up a number of VMs (Vagrant or docker), based on the inventory supplied. I'd use these VMs locally for automated testing using molecule,…
Stuart Milton
  • 63
  • 2
  • 6
-1
votes
1 answer

KeyError: 'docker' error when running 'molecule create' command

I am new to using Molecule and I'm having an issue trying to simply 'create' the docker image. The only files I have chanced within the molecule folder structure is 'molecule.yml', as seen below. I have tried to re-setup molecule on multiple…
Eric27710
  • 85
  • 1
  • 6
-1
votes
1 answer

Ansible Molecule Test Unable to Connect to Docker Daemon

I create the default test role by running molecule init scenario default Then I run molecule test Output from GitLab CI is as follows: "stderr": "\u001b[31mERROR: Unable to contact the Docker daemon. Please refer to…
R. Joseph
  • 1
  • 3
-1
votes
1 answer

vtkMolecule - remove atom

I am working on program which builds molecule from scratch. My intention is to use vtkMolecule for it. However, while it is easy to add Atom to molecule by AppendAtom method, there seems to be no function for removal. Here is my code: int main(int,…
john.d
  • 31
  • 5
1 2 3
9
10