1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_playbook_servers.git synced 2024-09-14 19:53:56 +02:00

Improve linting

This commit is contained in:
L3D 2023-04-25 14:50:48 +02:00
parent 87445e6b0d
commit 8d984e194b
Signed by: l3d
GPG key ID: CD08445BFF4313D1
5 changed files with 29 additions and 4 deletions

View file

@ -0,0 +1,27 @@
---
name: Ansible Lint check
# yamllint disable-line rule:truthy
on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'checkout git repo'
uses: actions/checkout@v3
with:
lfs: true
submodules: true
fetch-depth: 0
- name: 'Lint Ansible Playbook'
uses: ansible/ansible-lint-action@v6
with:
path: "site.yml"

View file

@ -18,5 +18,3 @@ jobs:
yamllint_config_filepath: './.yamllint'
yamllint_strict: false
yamllint_comment: true
# env:
# GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }

1
.gitignore vendored
View file

@ -23,3 +23,4 @@ tags
*.retry
*.vault
.vault
ansible/

View file

@ -14,3 +14,4 @@ ignore: |
host_vars/services.l3d.space/vault.yml
group_vars/all/vault.yml
roles/
ansible/

View file

@ -25,5 +25,3 @@ git config --global diff.ansible-vault.textconv "ansible-vault view"
### Standard Playbook
Das standard Playook ist ``site.yml``. Womöglich sind hier andere Playbooks eingebunden...
### best practise Ansible-Vault: