Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mivok/ansible-sshd
Openssh configuration role
https://github.com/mivok/ansible-sshd
Last synced: 24 days ago
JSON representation
Openssh configuration role
- Host: GitHub
- URL: https://github.com/mivok/ansible-sshd
- Owner: mivok
- License: mit
- Created: 2014-01-25T19:39:04.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-25T19:45:31.000Z (almost 11 years ago)
- Last Synced: 2023-04-14T00:12:03.428Z (over 1 year ago)
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Openssh configuration role
This role installed and configures the openssh server.
## Usage
You can just include the role without any configuration and sshd will be
configured with default values:...
roles:
- sshdHowever, this role allows almost every sshd configuration option present in
ssh_config to be changed. The variable names are of the form
sshd_variable_name, for example `sshd_permit_root_login`. Take a look at
`defaults/main.yml` for a full list of variables that can be configured.A good example configuration to use (just place these into your
`group_vars/groupname` file or wherever you are setting variables) would be:sshd_permit_root_login: "no"
sshd_password_authentication: "no"
sshd_allow_tcp_forwarding: "no"Note that if you put 'yes' or 'no' as the value for a configuration option, it
must be enclosed in quotes, otherwise ansible will interpret it as a boolean
and put an incorrect value in the configuration file.