Use jrei/systemd-ubuntu

This commit is contained in:
Paweł Krawczyk 2021-08-08 19:43:58 +01:00
parent a5aa2c6e4a
commit be4f52b728
No known key found for this signature in database
GPG Key ID: 32AF1F39C4EE03F2
3 changed files with 3 additions and 21 deletions

View File

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

View File

@ -9,17 +9,11 @@ driver:
name: docker name: docker
platforms: platforms:
- name: ubuntu-latest - name: ubuntu-latest
image: ubuntu:latest image: jrei/systemd-ubuntu:latest
- name: centos-latest - name: centos-latest
image: centos/systemd:latest image: centos/systemd:latest
command: /usr/sbin/init command: /usr/sbin/init
privileged: true privileged: true
# - 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:

View File

@ -5,7 +5,7 @@
hosts: all hosts: all
gather_facts: false gather_facts: false
tasks: tasks:
- name: list rules - name: list rules
command: nft list ruleset command: nft list ruleset
register: nft register: nft
@ -33,4 +33,3 @@
assert: assert:
that: that:
- 'status.stdout == "enabled"' - 'status.stdout == "enabled"'