2019-03-16 12:51:32 +01:00
|
|
|
---
|
|
|
|
dependency:
|
|
|
|
name: galaxy
|
2020-04-17 09:22:34 +02:00
|
|
|
|
2019-03-16 12:51:32 +01:00
|
|
|
driver:
|
|
|
|
name: docker
|
2020-04-17 09:22:34 +02:00
|
|
|
|
|
|
|
lint: |
|
|
|
|
set -e
|
|
|
|
yamllint .
|
|
|
|
ansible-lint
|
|
|
|
|
2019-03-16 12:51:32 +01:00
|
|
|
platforms:
|
2020-04-17 09:22:34 +02:00
|
|
|
- name: instance
|
|
|
|
image: geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest
|
|
|
|
pre_build_image: true
|
|
|
|
command: ${MOLECULE_DOCKER_COMMAND:-""}
|
|
|
|
volumes:
|
|
|
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
|
|
|
privileged: true
|
|
|
|
|
|
|
|
|
2019-03-16 12:51:32 +01:00
|
|
|
provisioner:
|
|
|
|
name: ansible
|
2020-04-17 09:22:34 +02:00
|
|
|
playbooks:
|
|
|
|
prepare: prepare.yml
|
|
|
|
converge: converge.yml
|
|
|
|
|
2019-03-16 12:51:32 +01:00
|
|
|
scenario:
|
|
|
|
test_sequence:
|
|
|
|
- lint
|
|
|
|
- destroy
|
2020-04-17 09:22:34 +02:00
|
|
|
- syntax
|
2019-03-16 12:51:32 +01:00
|
|
|
- create
|
2020-04-17 09:22:34 +02:00
|
|
|
- prepare
|
2019-03-16 12:51:32 +01:00
|
|
|
- converge
|
2020-04-17 09:22:34 +02:00
|
|
|
- verify
|
2019-03-16 12:51:32 +01:00
|
|
|
- destroy
|
|
|
|
|
|
|
|
verifier:
|
|
|
|
name: testinfra
|
|
|
|
lint:
|
|
|
|
name: flake8
|