mirror of
https://github.com/DO1JLR/ansible_playbook_servers.git
synced 2024-09-14 19:53:56 +02:00
improve linting and requirements
This commit is contained in:
parent
f8cb2e109b
commit
6f5148a871
8 changed files with 88 additions and 22 deletions
12
.github/dependabot.yml
vendored
Normal file
12
.github/dependabot.yml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
# See https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
- package-ecosystem: "gitsubmodule"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
24
.github/workflows/ansible-linting-check.yml
vendored
Normal file
24
.github/workflows/ansible-linting-check.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
name: Ansible Lint check
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Ansible Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout git repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Run ansible-lint
|
||||||
|
uses: ansible-actions/ansible-lint-action@v1.0.2
|
||||||
|
with:
|
||||||
|
target: "site.yml"
|
||||||
|
python_dependency_file: 'requirements.txt'
|
||||||
|
collections_yml: 'requirements.yml'
|
22
.github/workflows/j2lint-check.yml
vendored
Normal file
22
.github/workflows/j2lint-check.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
name: Jinja2 Linting check
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Jinja2 Linting
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout git repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Run j2lint
|
||||||
|
uses: ansible-actions/j2lint-action@v0.0.1
|
||||||
|
with:
|
||||||
|
target: "./"
|
22
.github/workflows/yamllint-check.yml
vendored
Normal file
22
.github/workflows/yamllint-check.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
name: Yamllint check
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Yamllint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout git repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Run yamllint
|
||||||
|
uses: ansible-actions/yamllint-action@v0.0.1
|
||||||
|
with:
|
||||||
|
target: "./"
|
20
.github/workflows/yamllint.yaml
vendored
20
.github/workflows/yamllint.yaml
vendored
|
@ -1,20 +0,0 @@
|
||||||
---
|
|
||||||
name: 'Yamllint GitHub Actions'
|
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
yamllint:
|
|
||||||
name: 'Yamllint'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: 'Checkout'
|
|
||||||
uses: actions/checkout@master
|
|
||||||
- name: 'Yamllint'
|
|
||||||
uses: karancode/yamllint-github-action@master
|
|
||||||
with:
|
|
||||||
yamllint_file_or_dir: '.'
|
|
||||||
yamllint_config_filepath: './.yamllint'
|
|
||||||
yamllint_strict: false
|
|
||||||
yamllint_comment: true
|
|
|
@ -23,4 +23,3 @@ etebase__create_backup: true
|
||||||
# acmetool config
|
# acmetool config
|
||||||
acme_reload_services:
|
acme_reload_services:
|
||||||
- 'nginx'
|
- 'nginx'
|
||||||
|
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
jmespath
|
jmespath>=1.0.1
|
||||||
|
passlib[bcrypt]>=1.7.4
|
||||||
|
|
6
requirements.yml
Normal file
6
requirements.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
collections:
|
||||||
|
- name: 'community.general'
|
||||||
|
version: ">=7.5.0,<=8.0.0"
|
||||||
|
- name: 'community.crypto'
|
||||||
|
version: ">=2.15.1,<=3.0.0"
|
Loading…
Reference in a new issue