Ansible Role: Containers
An Ansible role that spins up an array of Docker containers on Linux. It can additionally handle an array of Docker registries to login to.
Docker needs to be in place in order for this role to work. Additionally, python module docker is also needed (i.e. Docker SDK for Python).
Available variables are both arrays:
registries. They are
empty by default but you can find one example for each in
The following roles are not a hard dependencies, hence they are not mentioned in the meta/main.yml file. Reason for that geerlingguy.docker and geerlingguy.pip is to just ensure that the Docker daemon and Docker Python SDK is present (as both of these are hard dependencies).
- hosts: all vars: pip_install_packages: - name: docker roles: - geerlingguy.pip - geerlingguy.docker - hadret.containers
All of the
molecule tests and CI configuration are based on work of
This role was somewhat assembled in 2019 by Filip Chabik.