refactor: switch to ansible-lint and ansible-dev-tools container
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/test unknown status
ci/woodpecker/push/docs unknown status
ci/woodpecker/push/notify Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-08-18 16:05:11 +02:00
parent 89b6eddfca
commit 7c1042f7b8
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
5 changed files with 26 additions and 21 deletions

View File

@ -1,15 +0,0 @@
---
ansible:
custom_modules:
- iptables_raw
- openssl_pkcs12
- proxmox_kvm
- ucr
- corenetworks_dns
- corenetworks_token
rules:
exclude_files:
- "LICENSE*"
- "**/*.md"
- "**/*.ini"

View File

@ -6,10 +6,10 @@ when:
- ${CI_REPO_DEFAULT_BRANCH} - ${CI_REPO_DEFAULT_BRANCH}
steps: steps:
- name: ansible-later - name: ansible-lint
image: quay.io/thegeeklab/ansible-later:4 image: ghcr.io/ansible/community-ansible-dev-tools
commands: commands:
- ansible-later - ansible-lint
environment: environment:
FORCE_COLOR: "1" FORCE_COLOR: "1"

View File

@ -7,7 +7,7 @@ when:
variables: variables:
- &molecule_base - &molecule_base
image: quay.io/thegeeklab/molecule:6 image: ghcr.io/ansible/community-ansible-dev-tools
group: molecule group: molecule
environment: environment:
PY_COLORS: "1" PY_COLORS: "1"

20
.yamllint Normal file
View File

@ -0,0 +1,20 @@
---
extends: default
rules:
truthy:
allowed-values: ["True", "False"]
comments:
min-spaces-from-content: 1
comments-indentation: False
line-length: disable
braces:
min-spaces-inside: 0
max-spaces-inside: 1
brackets:
min-spaces-inside: 0
max-spaces-inside: 0
indentation: enable
octal-values:
forbid-implicit-octal: True
forbid-explicit-octal: True

View File

@ -2,8 +2,8 @@
- name: Restart auditd - name: Restart auditd
ansible.builtin.service: ansible.builtin.service:
name: auditd name: auditd
daemon_reload: yes daemon_reload: True
enabled: yes enabled: True
state: started state: started
when: not auditd_refuse_manual_stop | bool when: not auditd_refuse_manual_stop | bool
listen: __auditd_restart listen: __auditd_restart