fix for molecule>4.0.1 schema-validation

This commit is contained in:
AnsibleGuy 2023-03-23 20:49:22 +01:00
parent dfde3f73a0
commit 7f93e3bd43
No known key found for this signature in database
GPG Key ID: 52984C069F5AD3CD
1 changed files with 20 additions and 16 deletions

View File

@ -1,19 +1,5 @@
---
_references:
docker:
all: &docker_all
docker_host: 'tcp://molecule-docker.local:2375'
# docker_host: 'unix://var/run/docker.sock' # localhost
purge_networks: true
image: 'debian:11-slim'
# for docker systemd config see: https://serverfault.com/questions/1053187/systemd-fails-to-run-in-a-docker-container-when-using-cgroupv2-cgroupns-priva
dockerfile: 'Dockerfile_debian11_systemd.j2'
build_image: yes
tmpfs: ['/tmp', '/run', '/run/lock']
privileged: true
command: '/sbin/init'
dependency:
name: galaxy
driver:
@ -30,14 +16,32 @@ platforms:
ipv4_address: '192.168.0.1'
etc_hosts: {zoneminder.test.ansibleguy.net: '192.168.0.2'}
groups: [grp_tester]
<<: *docker_all
# docker config
docker_host: 'tcp://molecule-docker.local:2375'
purge_networks: true
image: 'debian:11-slim'
dockerfile: 'Dockerfile_debian11_systemd.j2'
build_image: yes
tmpfs: ['/tmp', '/run', '/run/lock']
privileged: true
command: '/sbin/init'
- name: test-ag-zm-1
networks:
- name: 'test-ag-zm'
ipv4_address: '192.168.0.2'
groups: [grp_targets]
<<: *docker_all
# docker config
docker_host: 'tcp://molecule-docker.local:2375'
purge_networks: true
image: 'debian:11-slim'
dockerfile: 'Dockerfile_debian11_systemd.j2'
build_image: yes
tmpfs: ['/tmp', '/run', '/run/lock']
privileged: true
command: '/sbin/init'
provisioner:
name: ansible