cookiecutter-ansible-role-d.../ansible-role-{{cookiecutter.app_name}}/molecule/default/molecule.yml

38 lines
848 B
YAML
Raw Permalink Normal View History

2020-04-28 13:23:10 +02:00
---
dependency:
name: galaxy
options:
ignore-certs: true
ignore-errors: true
role-file: molecule/requirements.yml
requirements-file: molecule/requirements.yml
2020-04-28 13:23:10 +02:00
driver:
name: docker
lint: |
yamllint .
ansible-lint .
platforms:
- name: {{ cookiecutter.app_name }}
groups:
- {{ cookiecutter.app_name }}_group
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos8}-ansible:latest"
privileged: true
pre_build_image: true
2020-04-28 13:23:10 +02:00
capabilities:
- SYS_ADMIN
tmpfs:
- /tmp
- /run
- /run/lock
volumes:
- '/sys/fs/cgroup:/sys/fs/cgroup:ro'
- '/var/run/docker.sock:/tmp/docker_mounted.sock'
2020-04-28 13:23:10 +02:00
command: '/lib/systemd/systemd'
stop_signal: 'RTMIN+3'
provisioner:
name: ansible
playbooks:
converge: ${MOLECULE_PLAYBOOK:-converge.yml}
2020-04-28 13:23:10 +02:00
verifier:
name: ansible