---
# {{ cookiecutter.role_name }} molecule/default/molecule.yml
#
# SPDX-FileCopyrightText: © {{ cookiecutter.year }} {{ cookiecutter.author }} <{{ cookiecutter.email }}>
# SPDX-License-Identifier: {{ cookiecutter.license }}

dependency:
  name: galaxy
driver:
  name: docker
platforms:
{%- for platform, versions in cookiecutter.platforms.items() %}
{%- set platform = platform | lower %}
{%- for version in versions %}
{%- if not cookiecutter.molecule_privileged %}
  - name: "{{ platform }}-{{ version }}"
    image: "{{ platform }}:{{ version }}"
{%- else %}{# privileged, running custom images generated by: https://github.com/paulfantom/dockerfiles #}
  - name: "{{ platform }}-{{ version }}-priv"
    image: "quay.io/paulfantom/molecule-systemd:{{ platform }}-{{ version }}"
    privileged: true
    volumes:
      - "/sys/fs/cgroup:/sys/fs/cgroup:ro"
{%- endif %}
{%- endfor %}
{%- endfor %}
provisioner:
  name: ansible
verifier:
  name: ansible
