---
dependency:
  name: galaxy
lint: |
  set -e
  yamllint .
  ansible-lint
  flake8
provisioner:
  name: ansible
  config_options:
    defaults:
      gather_timeout: 20
  inventory:
    host_vars:
      ics-ans-role-nginx-default:
        nginx_vhosts:
          - server_name: "ics-ans-role-nginx-default"
            root: "/var/www/test"
      ics-ans-role-nginx-ubn:
        nginx_vhosts:
          - server_name: "ics-ans-role-nginx-ubn"
            root: "/var/www/html"
scenario:
  name: default
verifier:
  name: testinfra
driver:
  name: docker
platforms:
  - name: ics-ans-role-nginx-default
    image: registry.esss.lu.se/ics-docker/centos-systemd:7
    # SYS_ADMIN required to run systemctl
    capabilities:
      - SYS_ADMIN
    volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup:ro
    tmpfs:
      - /run
    command: /sbin/init
    groups:
      - molecule_group
  - name: ics-ans-role-nginx-ubn
    image: registry.esss.lu.se/ics-docker/ubuntu-systemd:22.04
    # SYS_ADMIN required to run systemctl
    capabilities:
      - SYS_ADMIN
    volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup
    tmpfs:
      - /run
      - /tmp
    command: /sbin/init
    privileged: true
    groups:
      - molecule_group
