Giter Club home page Giter Club logo

ansible-role-ssh's Introduction

ansible-role-ssh

Build Status Ansible Galaxy

A light weight role for setting up OpenSSH server on Debian based systems.

Requirements

None

Variables

  • ssh_server_local_key: [default: ~/.ssh/id_rsa]: Specifies the local key to be used to ssh into the host machine. If the local key is not found it will be generated.

  • ssh_server_remote_key: [default: none]: Specifies a remote host key to be present. If specified and not found, a key will be generated.

  • ssh_server_permit_root_login: [default: without-password or yes depending on OS version, see defaults/main.yml]: Specifies whether root can log in using ssh.

  • ssh_server_x11_forwarding: [default: true]: Specifies whether X11 forwarding is permitted.

  • ssh_server_x11_display_offset: [default: 10]: Specifies the first display number available for sshd's X11 forwarding. This prevents sshd from interfering with real X11 servers.

  • ssh_server_x11_use_localhost: [default: false]: Specifies sshd binding to loopback address of wildcard address.

  • ssh_server_allow_groups: [default: [sshlogin]]: A list of group name patterns. If specified, login is allowed only for users whose primary group or supplementary group list matches one of the patterns. Groups will be created if not already.

  • ssh_server_allow_users: [default: []]: A list of user name patterns. If specified, login is allowed only for user names that match one of the patterns.

  • ssh_server_deny_groups: [default: []]: A list of group name patterns. If specified, login is disallowed for users whose primary group or supplementary group list matches one of the patterns. Groups will be created if not already.

  • ssh_server_deny_users: [default: []]: A list of user name patterns. If specified, login is disallowed for user names that match one of the patterns.

Dependencies

None

Example

---
- hosts: all
  roles:
    - ansible-role-ssh
---
- hosts: all
  tasks:
  - include_role: 
      name: ansible-role-ssh
    vars:
      ssh_server_local_key: '~/.ssh/user_id_rsa'

License

MIT

Author Information

Michael Henke

Feedback, bug-reports, requests, ...

Are welcome!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.