Testing
Continuous integration
The collection is tested with a molecule setup covering the included roles and verifying correct installation, configuration, and idempotency, on docker containers. The test scenarios are available on the source code repository each on his own subdirectory under molecule/.
Test playbooks
Sample playbooks are provided in the playbooks/
directory; to run the playbooks locally (requires a rhel system with python 3.9+, ansible, and systemd) the steps are as follows:
# setup environment as above, then
# create inventory for localhost
cat << EOF > inventory
[amq]
localhost ansible_connection=local
EOF
# run the playbook
ansible-playbook -i inventory playbooks/activemq.yml