Proper role testing

This commit is contained in:
2022-08-11 00:07:24 +12:00
parent 1efc90e172
commit 841bfc2eec
8 changed files with 36 additions and 15 deletions

View File

@@ -5,27 +5,30 @@ driver:
name: docker
platforms:
- name: rhel8
image: guisea/centos8-ansible:latest
image: docker.io/cybercinch/docker-almalinux8-ansible
# dockerfile: Centos8-Dockerfile
privileged: True
volume_mounts:
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
command: "/usr/sbin/init"
command: ${MOLECULE_DOCKER_COMMAND:-"/usr/sbin/init"}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
pre_build_image: true
- name: rhel7
image: guisea/centos7-ansible:latest
# dockerfile: Centos7-Dockerfile
privileged: True
volume_mounts:
volumes:
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
command: "/usr/sbin/init"
pre_build_image: true
provisioner:
name: ansible
log: True
options:
vvv: True
verifier:
name: ansible
lint: |
set -e
yamllint .
ansible-lint
flake8
# lint: |
# set -e
# yamllint .
# ansible-lint
# flake8