https://github.com/zstyblik/ansible-role-sshd
Ansible role for management of ssh daemon
https://github.com/zstyblik/ansible-role-sshd
ansible-role
Last synced: about 1 year ago
JSON representation
Ansible role for management of ssh daemon
- Host: GitHub
- URL: https://github.com/zstyblik/ansible-role-sshd
- Owner: zstyblik
- License: mit
- Created: 2024-07-27T12:36:04.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-24T17:41:49.000Z (over 1 year ago)
- Last Synced: 2025-04-10T20:28:40.472Z (about 1 year ago)
- Topics: ansible-role
- Language: Jinja
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible role sshd
Ansible role for management of ssh daemon.
## Requirements
None.
## Role variables
* `sshd_port`: SSHd port. Defaults to `22`.
* `sshd_password_auth`: Enable or disable password auth. Defaults to `"no"`.
* `sshd_permit_empty_passwords`: Permit empty passwords. Defaults to `"no"`.
* `sshd_permit_root_login`: Permit root user to login. Defaults to `"yes"`.
* `sshd_pub_key_auth`: Enable or disable public key auth. Defaults to `"yes"`.
* `sshd_extra_parameters`: Specify additional configuration. Defaults to `""`.
See `defaults/main.yml`.
## Dependencies
There are no extra dependencies as far as Ansible goes.
## Example Playbook
```
- hosts: all
vars:
sshd_permit_root_login: "no"
sshd_extra_parameters: |
UseDNS no
roles:
- role: sshd
```
## License
MIT