Files
Go.Rig-Operator/bamboo-specs/validate/ansible-lint.yaml

23 lines
695 B
YAML
Raw Permalink Normal View History

2026-01-15 09:58:01 +00:00
---
## Molecule deploy and test
tasks:
- script: |
#!/bin/bash
set -ex
# Run ansible-lint for the first set of roles (cp/lifecycle)
if ! docker run --rm --volume ${bamboo.hostvolume}:/data \
--workdir=/data \
${bamboo.container_molecule} \
ansible-lint -c .ansible-lint.yml; then
echo "ERROR: Ansible Lint failed. Check the output for details."
exit 1 # Stop the script immediately
fi
echo "Ansible Lint successful for all ansible/collections/ansible_collections!"
other:
clean-working-dir: true
requirements:
- system.docker.executable
- AGENT_TYPE: Linux_Base_Agent