update supported OS in meta and fix linting (#572)

Signed-off-by: Sebastian Gumprich <[email protected]>

Signed-off-by: Sebastian Gumprich <[email protected]>
This commit is contained in:
Sebastian Gumprich authored and GitHub committed 2022-08-26 13:44:51 +02:00
1 parent fbea75ad18
commit 11d187e62e
10 files changed
+29 -65

No files matched your search

+1 -40
View File
@@ -15,43 +15,4 @@ jobs:
# replace "master" with any valid ref # replace "master" with any valid ref
uses: ansible/ansible-lint-action@main uses: ansible/ansible-lint-action@main
with: with:
# [required] path: "roles/"
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
# or valid Ansible directories according to the Ansible role
# directory structure.
# If you want to lint multiple ansible files, use the following syntax
# targets: |
# playbook_1.yml
# playbook_2.yml
targets: "roles/"
# [optional]
# Arguments to override a package and its version to be set explicitly.
# Must follow the example syntax.
# override-deps: |
# ansible==2.9
# ansible-lint==4.2.0
override-deps: |
rich>=9.5.1,<11.0.0
# [optional]
# Arguments to be passed to the ansible-lint
# Options:
# -q quieter, although not silent output
# -p parseable output in the format of pep8
# --parseable-severity parseable output including severity of rule
# -r RULESDIR specify one or more rules directories using one or
# more -r arguments. Any -r flags override the default
# rules in ansiblelint/rules, unless -R is also used.
# -R Use default rules in ansiblelint/rules in addition to
# any extra
# rules directories specified with -r. There is no need
# to specify this if no -r flags are used
# -t TAGS only check rules whose id/tags match these values
# -x SKIP_LIST only check rules whose id/tags do not match these
# values
# --nocolor disable colored output
# --exclude=EXCLUDE_PATHS
# path to directories or files to skip. This option is
# repeatable.
# -c C Specify configuration file to use. Defaults to ".ansible-lint"
args: ""
+1
View File
@@ -1,3 +1,4 @@
---
namespace: devsec namespace: devsec
name: hardening name: hardening
version: 8.0.0 version: 8.0.0
+6 -4
View File
@@ -8,15 +8,17 @@ galaxy_info:
platforms: platforms:
- name: EL - name: EL
versions: versions:
- 6 - "7"
- 7 - "8"
- name: Ubuntu - name: Ubuntu
versions: versions:
- xenial
- bionic - bionic
- focal
- jammy
- name: Debian - name: Debian
versions: versions:
- jessie - bullseye
- buster
- name: Amazon - name: Amazon
- name: Fedora - name: Fedora
galaxy_tags: galaxy_tags:
+4 -4
View File
@@ -8,15 +8,15 @@ galaxy_info:
platforms: platforms:
- name: EL - name: EL
versions: versions:
- 6 - "7"
- 7 - "8"
- name: Ubuntu - name: Ubuntu
versions: versions:
- xenial
- bionic - bionic
- focal
- jammy
- name: Debian - name: Debian
versions: versions:
- stretch
- buster - buster
- bullseye - bullseye
galaxy_tags: galaxy_tags:
+6 -6
View File
@@ -8,22 +8,22 @@ galaxy_info:
platforms: platforms:
- name: EL - name: EL
versions: versions:
- 7 - "7"
- 8 - "8"
- name: Ubuntu - name: Ubuntu
versions: versions:
- xenial
- bionic - bionic
- focal
- jammy
- name: Debian - name: Debian
versions: versions:
- stretch
- buster - buster
- bullseye - bullseye
- name: Amazon - name: Amazon
- name: Fedora - name: Fedora
- name: Archlinux - name: ArchLinux
- name: SmartOS - name: SmartOS
- name: openSUSE - name: opensuse
galaxy_tags: galaxy_tags:
- system - system
- security - security
+1 -1
View File
@@ -6,7 +6,7 @@
# also see: https://github.com/dev-sec/ansible-os-hardening/issues/219 # also see: https://github.com/dev-sec/ansible-os-hardening/issues/219
- name: Find files with write-permissions for group - name: Find files with write-permissions for group
shell: "find -L {{ item }} -perm /go+w -type f" # noqa command-instead-of-shell shell: "find -L {{ item }} -perm /go+w -type f" # noqa command-instead-of-shell
with_flattened: with_community.general.flattened:
- '/usr/local/sbin' - '/usr/local/sbin'
- '/usr/local/bin' - '/usr/local/bin'
- '/usr/sbin' - '/usr/sbin'
-1
View File
@@ -15,4 +15,3 @@
file: file:
dest: '/etc/hosts.equiv' dest: '/etc/hosts.equiv'
state: 'absent' state: 'absent'
+2 -2
View File
@@ -6,7 +6,7 @@
state: 'file' state: 'file'
follow: 'yes' follow: 'yes'
failed_when: false failed_when: false
with_flattened: with_community.general.flattened:
- '{{ os_security_suid_sgid_system_blacklist }}' - '{{ os_security_suid_sgid_system_blacklist }}'
- '{{ os_security_suid_sgid_blacklist }}' - '{{ os_security_suid_sgid_blacklist }}'
@@ -27,6 +27,6 @@
mode: 'a-s' mode: 'a-s'
state: 'file' state: 'file'
follow: 'yes' follow: 'yes'
with_flattened: with_community.general.flattened:
- '{{ suid | default([]) | difference(os_security_suid_sgid_whitelist) }}' - '{{ suid | default([]) | difference(os_security_suid_sgid_whitelist) }}'
when: os_security_suid_sgid_remove_from_unknown | bool when: os_security_suid_sgid_remove_from_unknown | bool
+1 -1
View File
@@ -43,7 +43,7 @@
shell: '{{ os_nologin_shell_path }}' shell: '{{ os_nologin_shell_path }}'
password: '*' password: '*'
createhome: false createhome: false
with_flattened: with_community.general.flattened:
- '{{ sys_accs_cond | default([]) | difference(os_ignore_users) | list }}' - '{{ sys_accs_cond | default([]) | difference(os_ignore_users) | list }}'
- name: get all home directories in /home, but skip ignored users - name: get all home directories in /home, but skip ignored users
+7 -6
View File
@@ -8,21 +8,22 @@ galaxy_info:
platforms: platforms:
- name: EL - name: EL
versions: versions:
- 7 - "7"
- 8 - "8"
- name: Ubuntu - name: Ubuntu
versions: versions:
- xenial
- bionic - bionic
- focal
- jammy
- name: Debian - name: Debian
versions: versions:
- stretch
- buster - buster
- bullseye
- name: Amazon - name: Amazon
- name: Fedora - name: Fedora
- name: Archlinux - name: ArchLinux
- name: SmartOS - name: SmartOS
- name: openSUSE - name: opensuse
galaxy_tags: galaxy_tags:
- system - system
- security - security