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:
parent
87445e6b0d
commit
8d984e194b
5 changed files with 29 additions and 4 deletions
27
.github/workflows/ansible-linting-check.yml
vendored
Normal file
27
.github/workflows/ansible-linting-check.yml
vendored
Normal 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"
|
2
.github/workflows/yamllint.yaml
vendored
2
.github/workflows/yamllint.yaml
vendored
|
@ -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
1
.gitignore
vendored
|
@ -23,3 +23,4 @@ tags
|
|||
*.retry
|
||||
*.vault
|
||||
.vault
|
||||
ansible/
|
||||
|
|
|
@ -14,3 +14,4 @@ ignore: |
|
|||
host_vars/services.l3d.space/vault.yml
|
||||
group_vars/all/vault.yml
|
||||
roles/
|
||||
ansible/
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue