A container that is used for GitHub actions molecule.
This container contains:
- ansible - Used to run the tests.
- ansible-lint - A command-line tool for linting playbooks, roles and collections aimed towards any Ansible users.
- docker - Used by molecule to start instances using the
docker
driver. - molecule - Used to orchestrate the tests. molecule-plugins are installed too.
- tox - Used to test multiple version of ansible if
tox.ini
exists. - testinfra - Used to test the instances.
- yamllint - Used to lint YAML files.
- rsync, required in same cases for Molecule.
- Linux tools like
docker
,gcc
,git
(core),python3-*
andrsync
are installed too.
The default behaviour is to:
- See if
tox.ini
exists -> Runtox
- Otherwise -> Run
molecule test
- Retry either (
tox
ormolecule
) 3 times. - Run
test
ifcommand
is not set. - Test the
default
scenario ifscenario
in not set.
Read how to test locally.
Please consider sponsoring me.