fix(ci): Applied yammlint fixes 🚨
All checks were successful
CI / lint (push) Successful in 14s
CI / release (push) Successful in 36s
CI / notify (push) Successful in 8s

This commit is contained in:
2024-08-20 11:50:49 +12:00
parent 50725f0195
commit 021fa1999a
4 changed files with 111 additions and 72 deletions

View File

@@ -1,3 +1,4 @@
---
name: CI
on:
push:
@@ -14,7 +15,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
cache: 'pip' # caching pip dependencies
- name: Ensure requirements are installed
run: pip install -r requirements.txt

36
.yamllint Normal file
View File

@@ -0,0 +1,36 @@
---
# Based on ansible-lint config
extends: default
skip_list:
- fqcn-builtins
- role-name
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
colons:
max-spaces-after: -1
level: error
commas:
max-spaces-after: -1
level: error
comments: enable
comments-indentation: disable
document-start: disable
empty-lines:
max: 3
level: error
hyphens:
level: error
indentation: disable
key-duplicates: enable
line-length: disable
new-line-at-end-of-file: enable
new-lines:
type: unix
trailing-spaces: disable
truthy: disable

View File

@@ -36,61 +36,61 @@ csf_global_ini:
- option: UDP_OUT
value: "20,21,43,53,113,123,58745,30000:65535"
#csf_allow:
# - 10.10.10.10
# - 172.16.1.1/29
# csf_allow:
# - 10.10.10.10
# - 172.16.1.1/29
#csf_ignore:
# - 10.10.10.10
# - 172.16.1.1/29
# csf_ignore:
# - 10.10.10.10
# - 172.16.1.1/29
#csf_pignore:
# - 'exe:/usr/sbin/nginx'
# - 'user:mysql'
# csf_pignore:
# - 'exe:/usr/sbin/nginx'
# - 'user:mysql'
#csf_fignore:
# - '/tmp/\.horde'
# - '/tmp/\.horde/.*'
# csf_fignore:
# - '/tmp/\.horde'
# - '/tmp/\.horde/.*'
#csf_blocklists:
# - "SPAMDROP"
# csf_blocklists:
# - "SPAMDROP"
#csf_dyndns:
# - "no-ip.com"
# csf_dyndns:
# - "no-ip.com"
#csf_csfpre_sh: |
# #!/bin/bash
# /sbin/iptables -t nat -F POSTROUTING
# csf_csfpre_sh: |
# #!/bin/bash
# /sbin/iptables -t nat -F POSTROUTING
#csf_csfpost_sh: |
# #!/bin/bash
# /sbin/iptables -t nat -F POSTROUTING
# csf_csfpost_sh: |
# #!/bin/bash
# /sbin/iptables -t nat -F POSTROUTING
# Host based custom allow rules
#csf_allow_host:
# - 'tcp|in|d=22|s=1.1.1.1'
# csf_allow_host:
# - 'tcp|in|d=22|s=1.1.1.1'
#csf_ignore_host:
# - '1.1.1.1'
# csf_ignore_host:
# - '1.1.1.1'
#csf_pignore_host:
# - 'exe:/usr/sbin/nginx'
# - 'user:mysql'
# csf_pignore_host:
# - 'exe:/usr/sbin/nginx'
# - 'user:mysql'
#csf_fignore_host:
# - '/tmp/\.horde'
# - '/tmp/\.horde/.*'
# csf_fignore_host:
# - '/tmp/\.horde'
# - '/tmp/\.horde/.*'
#csf_blocklists_host:
# - "SPAMDROP"
# csf_blocklists_host:
# - "SPAMDROP"
#csf_dyndns_host:
# - "no-ip.com"
# csf_dyndns_host:
# - "no-ip.com"
#csf_csfpre_sh_host: |
# #!/bin/bash
# /sbin/iptables -t nat -F POSTROUTING
# csf_csfpre_sh_host: |
# #!/bin/bash
# /sbin/iptables -t nat -F POSTROUTING
#csf_csfpost_sh_host: |
# #!/bin/bash
# /sbin/iptables -t nat -F POSTROUTING
# csf_csfpost_sh_host: |
# #!/bin/bash
# /sbin/iptables -t nat -F POSTROUTING

View File

@@ -2,32 +2,34 @@
dependencies: []
galaxy_info:
author: cybercinch
description: Install and configure CSF/LFD (https://configserver.com/cp/csf.html)
min_ansible_version: "2.9"
license: MIT
platforms:
- name: EL
versions:
- "6"
- "7"
- "8"
- "9"
- name: Debian
versions:
- wheezy
- jessie
- stretch
- name: Ubuntu
versions:
- precise
- trusty
- xenial
- bionic
galaxy_tags:
- csf
- lfd
- firewall
- iptables
- networking
- system
author: cybercinch
description: >
Install and configure CSF/LFD
(https://configserver.com/cp/csf.html)
min_ansible_version: "2.9"
license: MIT
platforms:
- name: EL
versions:
- "6"
- "7"
- "8"
- "9"
- name: Debian
versions:
- wheezy
- jessie
- stretch
- name: Ubuntu
versions:
- precise
- trusty
- xenial
- bionic
galaxy_tags:
- csf
- lfd
- firewall
- iptables
- networking
- system