Add Molecule test scenario

This commit is contained in:
Paweł Krawczyk 2021-08-06 10:28:16 +01:00
parent eafc04a360
commit 564038c06e
No known key found for this signature in database
GPG Key ID: 32AF1F39C4EE03F2
5 changed files with 82 additions and 0 deletions

20
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,20 @@
---
name: Molecule
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Ansible Molecule
uses: MonolithProjects/action-molecule@v1.4.3

33
.yamllint Normal file
View File

@ -0,0 +1,33 @@
---
# Based on ansible-lint config
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
colons:
max-spaces-after: -1
level: error
commas:
max-spaces-after: -1
level: error
comments: disable
comments-indentation: disable
document-start: disable
empty-lines:
max: 3
level: error
hyphens:
level: error
indentation: disable
key-duplicates: enable
line-length: disable
new-line-at-end-of-file: disable
new-lines:
type: unix
trailing-spaces: disable
truthy: disable

View File

@ -0,0 +1,7 @@
---
- name: Converge
hosts: all
roles:
- role: ipr-cnrs.nftables

View File

@ -0,0 +1,12 @@
---
dependency:
name: galaxy
driver:
name: docker
platforms:
- name: instance
image: ubuntu:latest
provisioner:
name: ansible
verifier:
name: ansible

View File

@ -0,0 +1,10 @@
---
# This is an example playbook to execute Ansible tests.
- name: Verify
hosts: all
gather_facts: false
tasks:
- name: Example assertion
assert:
that: true