ansible-role-basic-system-s.../molecule/default/molecule.yml

59 lines
1.2 KiB
YAML

---
dependency:
name: galaxy
options:
ignore-errors: true
driver:
name: docker
platforms:
- name: ubuntu-jammy
image: geerlingguy/docker-ubuntu2204-ansible
pre_build_image: true
privileged: true
command: /lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
tmpfs:
- /run
- /tmp
- name: rocky-9
image: geerlingguy/docker-rockylinux9-ansible
pre_build_image: true
privileged: true
command: /lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
tmpfs:
- /run
- /tmp
# EL 10 - uncomment when stable images are available
# - name: almalinux-10
# image: almalinux:10
# pre_build_image: false
# privileged: true
# command: /lib/systemd/systemd
# volumes:
# - /sys/fs/cgroup:/sys/fs/cgroup:rw
# cgroupns_mode: host
# tmpfs:
# - /run
# - /tmp
provisioner:
name: ansible
config_options:
defaults:
interpreter_python: auto_silent
inventory:
host_vars:
ubuntu-jammy:
ansible_python_interpreter: /usr/bin/python3
rocky-9:
ansible_python_interpreter: /usr/bin/python3
verifier:
name: ansible
lint: |
set -e
ansible-lint