Initial commit

This commit is contained in:
Élie Deloumeau-Prigent
2021-09-27 17:00:36 +02:00
commit b95595ef6e
23 changed files with 1205 additions and 0 deletions

15
.github/workflows/galaxy.yml vendored Normal file
View File

@ -0,0 +1,15 @@
---
name: Import role on Ansible Galaxy
on: # yamllint disable-line rule:truthy
release:
types:
- released
jobs:
release:
runs-on: ubuntu-20.04
steps:
- name: galaxy
uses: robertdebock/galaxy-action@1.1.1
with:
galaxy_api_key: ${{ secrets.galaxy_api_key }}

50
.github/workflows/molecule.yml vendored Normal file
View File

@ -0,0 +1,50 @@
---
name: Ansible Molecule
on: # yamllint disable-line rule:truthy
push:
tags_ignore:
- '*'
pull_request:
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2
with:
path: "${{ github.repository }}"
- name: molecule
uses: robertdebock/molecule-action@2.6.17
with:
command: lint
test:
needs:
- lint
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
config:
- image: "amazonlinux"
tag: "latest"
- image: "centos"
tag: "8"
- image: "debian"
tag: "11"
- image: "debian"
tag: "10"
- image: "ubuntu"
tag: "20.04"
steps:
- name: checkout
uses: actions/checkout@v2
with:
path: "${{ github.repository }}"
- name: molecule
uses: robertdebock/molecule-action@2.6.17
with:
image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }}