Use Molecule provisioned images

This commit is contained in:
Paweł Krawczyk 2021-08-08 15:41:28 +01:00
parent 9fd12fe790
commit 9fabd5a845
No known key found for this signature in database
GPG Key ID: 32AF1F39C4EE03F2
3 changed files with 22 additions and 19 deletions

View File

@ -12,14 +12,14 @@ on:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- image: centos
tag: latest
- image: debian
tag: latest
# strategy:
# fail-fast: false
# matrix:
# config:
# - image: centos
# tag: latest
# - image: debian
# tag: latest
steps:
- name: checkout
@ -29,6 +29,6 @@ jobs:
- name: molecule
uses: robertdebock/molecule-action@2.6.17
with:
image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }}
# with:
# image: ${{ matrix.config.image }}
# tag: ${{ matrix.config.tag }}

View File

@ -1,8 +1,6 @@
---
- name: Converge
hosts: localhost
connection: local
become: yes
hosts: all
gather_facts: yes
roles:
- role: ipr-cnrs.nftables

View File

@ -8,11 +8,16 @@ lint: |
driver:
name: docker
platforms:
- name: "nftables-${image:-debian}-${tag:-latest}"
image: "${image:-debian}:${tag:-latest}"
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- name: ubuntu-latest
image: ubuntu:latest
- name: centos-latest
image: centos-latest
# - name: "nftables-${image:-debian}-${tag:-latest}"
# image: "${image:-debian}:${tag:-latest}"
# command: /lib/systemd/systemd
# privileged: true
# volumes:
# - /sys/fs/cgroup:/sys/fs/cgroup:ro
provisioner:
name: ansible
verifier: