{"id":15870093,"url":"https://github.com/stephrobert/ansible-role-sshd","last_synced_at":"2026-02-15T23:05:46.631Z","repository":{"id":212675120,"uuid":"732050122","full_name":"stephrobert/ansible-role-sshd","owner":"stephrobert","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-16T15:18:33.000Z","size":1205,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T07:07:49.444Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stephrobert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-15T14:13:39.000Z","updated_at":"2025-09-17T06:20:51.000Z","dependencies_parsed_at":"2024-10-27T07:02:48.217Z","dependency_job_id":"5abb1659-6fd0-417d-9114-fb282d6050f2","html_url":"https://github.com/stephrobert/ansible-role-sshd","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"d5bb1bb6a39e7c99e78432d69343f95b2207e503"},"previous_names":["stephrobert/ansible-role-sshd"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/stephrobert/ansible-role-sshd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephrobert%2Fansible-role-sshd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephrobert%2Fansible-role-sshd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephrobert%2Fansible-role-sshd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephrobert%2Fansible-role-sshd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephrobert","download_url":"https://codeload.github.com/stephrobert/ansible-role-sshd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephrobert%2Fansible-role-sshd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29491999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-06T00:03:59.193Z","updated_at":"2026-02-15T23:05:46.592Z","avatar_url":"https://github.com/stephrobert.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stephrobert.sshd\n\n[![Maintainer](https://img.shields.io/badge/maintained%20by-stephrobert-e00000?style=flat-square)](https://github.com/stephrobert)\n[![License](https://img.shields.io/github/license/stephrobert/ansible-role-sshd?style=flat-square)](https://github.com/stephrobert/ansible-role-sshd/blob/main/LICENSE)\n[![Release](https://img.shields.io/github/v/release/stephrobert/ansible-role-sshd?style=flat-square)](https://github.com/stephrobert/ansible-role-sshd/releases)\n[![Status](https://img.shields.io/github/workflow/status/stephrobert/ansible-role-sshd/Ansible%20Molecule?style=flat-square\u0026label=tests)](https://github.com/stephrobert/ansible-role-sshd/actions?query=workflow%3A%22Ansible+Molecule%22)\n[![Ansible Galaxy](https://img.shields.io/badge/ansible-galaxy-black.svg?style=flat-square\u0026logo=ansible)](https://galaxy.ansible.com/stephrobert/sshd)[![Ansible version](https://img.shields.io/badge/ansible-%3E%3D2.10-black.svg?style=flat-square\u0026logo=ansible)](https://github.com/ansible/ansible)\n\n⭐ Star us on GitHub — it motivates us a lot!\n\nInstall sshd\n\n**Platforms Supported**:\n\n| Platform | Versions |\n|----------|----------|\n| Debian | bullseye |\n| Ubuntu | jammy |\n\n## ⚠️ Requirements\n\nAnsible \u003e= 2.11.\n\n### Ansible role dependencies\n\nNone.\n\n## ⚡ Installation\n\n### Install with Ansible Galaxy\n\n```shell\nansible-galaxy install stephrobert.sshd\n```\n\n### Install with git\n\nIf you do not want a global installation, clone it into your `roles_path`.\n\n```bash\ngit clone git@github.com:stephrobert/ansible-role-sshd.git  stephrobert.sshd\n```\n\nBut I often add it as a submodule in a given `playbook_dir` repository.\n\n```bash\ngit submodule add git@github.com:stephrobert/ansible-role-sshd.git roles/stephrobert.sshd\n```\n\nAs the role is not managed by Ansible Galaxy, you do not have to specify the\ngithub user account.\n\n### ✏️ Example Playbook\n\nBasic usage is:\n\n```yaml\n- hosts: all\n  roles:\n    - role: stephrobert.sshd\n      vars:\n        sshd_config: {}\n        \n```\n\n## ⚙️ Role Variables\n\nVariables are divided in three types.\n\nThe **default vars** section shows you which variables you may\noverride in your ansible inventory. As a matter of fact, all variables should\nbe defined there for explicitness, ease of documentation as well as overall\nrole manageability.\n\nThe **context variables** are shown in section below hint you\non how runtime context may affects role execution.\n\n### Default variables\nRole default variables from `defaults/main.yml`.\n\n| Variable Name | Value |\n|---------------|-------|\n| sshd_config | {}\u003cbr\u003e |\n\n### Context variables\n\nThose variables from `vars/*.{yml,json}` are loaded dynamically during task\nruntime using the `include_vars` module.\n\nVariables loaded from `vars/main.yml`.\n\n| Variable Name | Value |\n|---------------|-------|\n| _sshd_config | AcceptEnv: LANG LC_*\u003cbr\u003eAddressFamily: any\u003cbr\u003eAllowAgentForwarding: false\u003cbr\u003eAllowTcpForwarding: false\u003cbr\u003eAllowUsers: ansible\u003cbr\u003eAuthorizedKeysCommand: none\u003cbr\u003eAuthorizedKeysCommandUser: nobody\u003cbr\u003eAuthorizedKeysFile: .ssh/authorized_keys\u003cbr\u003eAuthorizedPrincipalsFile: none\u003cbr\u003eBanner: /etc/issue.net\u003cbr\u003eChrootDirectory: none\u003cbr\u003eClientAliveCountMax: 2\u003cbr\u003eClientAliveInterval: 300\u003cbr\u003eCompression: false\u003cbr\u003eForceCommand: none\u003cbr\u003eGSSAPIAuthentication: false\u003cbr\u003eGSSAPICleanupCredentials: true\u003cbr\u003eGatewayPorts: false\u003cbr\u003eHostKey: /etc/ssh/ssh_host_rsa_key\u003cbr\u003eHostbasedAuthentication: false\u003cbr\u003eIgnoreRhosts: true\u003cbr\u003eIgnoreUserKnownHosts: false\u003cbr\u003eKbdInteractiveAuthentication: true\u003cbr\u003eKerberosAuthentication: false\u003cbr\u003eKerberosGetAFSToken: false\u003cbr\u003eKerberosOrLocalPasswd: true\u003cbr\u003eKerberosTicketCleanup: true\u003cbr\u003eListenAddress: 0.0.0.0\u003cbr\u003eLogLevel: INFO\u003cbr\u003eLoginGraceTime: 60\u003cbr\u003eMaxAuthTries: 3\u003cbr\u003eMaxSessions: 2\u003cbr\u003eMaxStartups: 10:30:100\u003cbr\u003ePasswordAuthentication: false\u003cbr\u003ePermitEmptyPasswords: false\u003cbr\u003ePermitRootLogin: false\u003cbr\u003ePermitTTY: true\u003cbr\u003ePermitTunnel: false\u003cbr\u003ePermitUserEnvironment: false\u003cbr\u003ePidFile: /var/run/sshd.pid\u003cbr\u003ePort: 22\u003cbr\u003ePrintLastLog: true\u003cbr\u003ePrintMotd: true\u003cbr\u003ePubkeyAuthentication: true\u003cbr\u003eRekeyLimit: default 60s\u003cbr\u003eStrictModes: true\u003cbr\u003eSubsystem: sftp    /usr/lib/openssh/sftp-server\u003cbr\u003eSyslogFacility: AUTH\u003cbr\u003eTCPKeepAlive: false\u003cbr\u003eUseDNS: false\u003cbr\u003eUsePAM: false\u003cbr\u003eVersionAddendum: none\u003cbr\u003eX11DisplayOffset: 10\u003cbr\u003eX11Forwarding: false\u003cbr\u003eX11UseLocalhost: true\u003cbr\u003e |\n\n\n\n## Author Information\n\nnone","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephrobert%2Fansible-role-sshd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephrobert%2Fansible-role-sshd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephrobert%2Fansible-role-sshd/lists"}