https://github.com/ricsanfre/ansible-role-security
Security Hardening tasks on Linux hosts
https://github.com/ricsanfre/ansible-role-security
ansible-role security ssh ssh-config
Last synced: about 1 month ago
JSON representation
Security Hardening tasks on Linux hosts
- Host: GitHub
- URL: https://github.com/ricsanfre/ansible-role-security
- Owner: ricsanfre
- Created: 2021-09-13T17:17:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-24T10:45:11.000Z (almost 5 years ago)
- Last Synced: 2025-01-26T11:12:18.752Z (over 1 year ago)
- Topics: ansible-role, security, ssh, ssh-config
- Homepage: https://galaxy.ansible.com/ricsanfre/security
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Ansible Role: Security
=========
[](https://github.com/ricsanfre/ansible-role-security/actions/workflows/ci.yml)
Security hardening tasks on Linux.
- SSH access hardening
Requirements
------------
None.
Role Variables
--------------
Available variables are listed below along with default values (see `defaults\main.yaml`)
Security SSH security hardened settings disable the login/password access (only access through SSH keys are allowed), disable root login and others.
security_ssh_password_authentication: "no"
security_ssh_permit_root_login: "no"
security_ssh_usedns: "no"
security_ssh_permit_empty_password: "no"
security_ssh_challenge_response_auth: "no"
security_ssh_gss_api_authentication: "no"
security_ssh_x11_forwarding: "no"
Dependencies
------------
None
Example Playbooks
-----------------
### Apply default rules
Install and configure a firewall on a host with default rules
```yml
- hosts: server
roles:
- ricsanfre.security
```