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 name: CI
on: on:
push: push:

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

View File

@@ -3,7 +3,9 @@ dependencies: []
galaxy_info: galaxy_info:
author: cybercinch author: cybercinch
description: Install and configure CSF/LFD (https://configserver.com/cp/csf.html) description: >
Install and configure CSF/LFD
(https://configserver.com/cp/csf.html)
min_ansible_version: "2.9" min_ansible_version: "2.9"
license: MIT license: MIT
platforms: platforms: