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

View File

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

View File

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