You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dev-sec CI fed8bdabd7 update changelog 2 days ago
.github Create dependabot.yml 5 days ago
meta add a runtime.yml to declare minimum ansible version (#363) 2 months ago
molecule change inclusion of os specific defaults (#353) 2 months ago
roles remove FQCN from roles in examples (#404) 1 week ago
.gitattributes update changelog 3 years ago
.gitignore use new docker images 4 years ago
.gitmodules remove os submodule 3 months ago
.prettierignore add restart handler variable for mysql role (#399) 2 weeks ago
.yamllint move to collections 3 months ago
CHANGELOG.md update changelog 2 days ago
CONTRIBUTING.md Prettified Code! 3 months ago
OS_HARDENING_CHANGELOG.md fix changelog generation (#341) 2 months ago
README.md add install instructions 2 days ago
galaxy.yml update galaxy.yml with new version 2 weeks ago
requirements.txt update ansible-lint to version 5 (#397) 2 weeks ago

README.md

Ansible Collection - devsec.hardening

devsec.os_hardening devsec.ssh_hardening devsec.nginx_hardening devsec.mysql_hardening

Description

This collection provides battle tested hardening for:

  • Linux operating systems:
    • CentOS 7/8
    • Debian 9/10
    • Ubuntu 16.04/18.04/20.04
    • Amazon Linux (some roles supported)
    • Arch Linux (some roles supported)
    • Fedora (some roles supported)
    • Suse Tumbleweed (some roles supported)
  • MySQL
    • MariaDB >= 5.5.65, >= 10.1.45, >= 10.3.17
    • MySQL >= 5.7.31, >= 8.0.3
  • Nginx 1.0.16 or later
  • OpenSSH 5.3 and later

The hardening is intended to be compliant with the Inspec DevSec Baselines:

Looking for the old ansible-os-hardening role?

This role is now part of the hardening-collection. You can find the old role in the branch legacy.

Minimum required Ansible-version

  • Ansible >= 2.9.10

Included content

In progress, not working:

Installation

Install the collection via ansible-galaxy:

ansible-galaxy collection install devsec.hardening

Using this collection

Please refer to the examples in the readmes of the role.

See Ansible Using collections for more details.

Contributing to this collection

See the contributor guideline.

Release notes

See the changelog.

Roadmap

Todos:

More information

General information:

Licensing

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.