ansible-collection-hardening/molecule/os_hardening/molecule.yml

59 lines
1 KiB
YAML
Raw Normal View History

2020-11-07 20:19:43 +00:00
---
dependency:
name: galaxy
options:
role-file: molecule/os_hardening/requirements.yml
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
2020-11-07 20:19:43 +00:00
privileged: true
cgroupns_mode: host
pre_build_image: true
2020-11-07 20:19:43 +00:00
provisioner:
name: ansible
options:
diff: true
2020-11-07 20:19:43 +00:00
config_options:
defaults:
interpreter_python: auto_silent
callback_whitelist: profile_tasks, timer, yaml
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
2020-11-07 20:19:43 +00:00
- converge
- idempotence
- verify
- destroy