Merge remote-tracking branch 'github/add_molecule'

This commit is contained in:
Jeremy Gardais 2021-08-06 16:09:20 +02:00
commit adc627ebc0
6 changed files with 83 additions and 1 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

@ -8,7 +8,7 @@ galaxy_info:
license: WTFPL
company: IPR
issue_tracker_url: https://git.ipr.univ-rennes1.fr/cellinfo/ansible.nftables/issues
min_ansible_version: 2.5
min_ansible_version: '2.5'
platforms:
- name: Debian
versions:

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