This commit is contained in:
Bastian Epting 2023-12-08 12:46:05 +01:00
parent 14409872b6
commit 053d571eaa
5 changed files with 80 additions and 0 deletions

9
.ansible-lint Normal file
View File

@ -0,0 +1,9 @@
use_default_rules: true
exclude_paths:
- venv/
- molecule/default/
- tests/
#skip_list:
# - '301'

View File

@ -0,0 +1,22 @@
---
name: Ansible Lint check
# yamllint disable-line rule:truthy
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@master
with:
targets: "."
# [required]
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
args: ""
# [optional]

10
.gitignore vendored Normal file
View File

@ -0,0 +1,10 @@
*.pyc
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

27
.travis.yml Normal file
View File

@ -0,0 +1,27 @@
---
language: python
python:
- "3.7"
env:
matrix:
- MOLECULE_DISTRO: centos8
- MOLECULE_DISTRO: centos7
- MOLECULE_DISTRO: ubuntu2004
- MOLECULE_DISTRO: ubuntu1804
- MOLECULE_DISTRO: ubuntu1604
- MOLECULE_DISTRO: debian10
- MOLECULE_DISTRO: debian9
- MOLECULE_DISTRO: fedora33
services:
- docker
install:
- python -m pip -q install -r requirements-travis.txt
script:
- molecule test
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/

12
.yamllint Normal file
View File

@ -0,0 +1,12 @@
---
extends: default
rules:
line-length:
max: 100
level: warning
ignore: |
/venv/
/env/
/molecule/