mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 09:14:18 +00:00
7e33ea0bae
Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
---
|
|
driver:
|
|
name: docker
|
|
platforms:
|
|
- name: instance
|
|
image: rndmh3ro/docker-${MOLECULE_DISTRO}-ansible:latest
|
|
command: ${MOLECULE_DOCKER_COMMAND:-/lib/systemd/systemd}
|
|
volumes:
|
|
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
|
privileged: true
|
|
cgroupns_mode: host
|
|
pre_build_image: true
|
|
provisioner:
|
|
name: ansible
|
|
options:
|
|
diff: true
|
|
config_options:
|
|
defaults:
|
|
interpreter_python: auto_silent
|
|
callbacks_enabled: profile_tasks, timer, yaml
|
|
inventory:
|
|
host_vars:
|
|
# https://molecule.readthedocs.io/en/latest/examples.html#docker-with-non-privileged-user
|
|
# setting for the platform instance named 'instance'
|
|
instance:
|
|
ansible_user: ansible
|
|
verifier:
|
|
name: ansible
|
|
|
|
scenario:
|
|
create_sequence:
|
|
- dependency
|
|
- create
|
|
- prepare
|
|
check_sequence:
|
|
- dependency
|
|
- destroy
|
|
- create
|
|
- prepare
|
|
- converge
|
|
- check
|
|
- destroy
|
|
converge_sequence:
|
|
- dependency
|
|
- create
|
|
- prepare
|
|
- converge
|
|
destroy_sequence:
|
|
- destroy
|
|
test_sequence:
|
|
- dependency
|
|
- destroy
|
|
- syntax
|
|
- create
|
|
- prepare
|
|
- check
|
|
- converge
|
|
- idempotence
|
|
- verify
|
|
- destroy
|