{"id":21605985,"url":"https://github.com/archf/ansible-openssh-server","last_synced_at":"2025-07-30T17:42:43.467Z","repository":{"id":89975047,"uuid":"43376107","full_name":"archf/ansible-openssh-server","owner":"archf","description":"Ansible role to configure sshd on a remote host","archived":false,"fork":false,"pushed_at":"2018-05-28T14:55:39.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-18T14:49:04.022Z","etag":null,"topics":["ansible","role","sshd"],"latest_commit_sha":null,"homepage":null,"language":null,"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/archf.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":"2015-09-29T15:23:54.000Z","updated_at":"2018-05-28T14:55:40.000Z","dependencies_parsed_at":"2023-05-30T18:00:27.879Z","dependency_job_id":null,"html_url":"https://github.com/archf/ansible-openssh-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/archf/ansible-openssh-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archf%2Fansible-openssh-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archf%2Fansible-openssh-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archf%2Fansible-openssh-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archf%2Fansible-openssh-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archf","download_url":"https://codeload.github.com/archf/ansible-openssh-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archf%2Fansible-openssh-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267912320,"owners_count":24164505,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ansible","role","sshd"],"created_at":"2024-11-24T20:18:27.017Z","updated_at":"2025-07-30T17:42:43.451Z","avatar_url":"https://github.com/archf.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-openssh-server\n\nA role to install and configure openssh-server on a target host.\n\n## Ansible requirements\n\n### Ansible version\n\nMinimum required ansible version is 2.0.\n\n### Ansible role dependencies\n\nNone.\n\n## Installation\n\n### Install with Ansible Galaxy\n\n```shell\nansible-galaxy install archf.openssh-server\n```\n\nBasic usage is:\n\n```yaml\n- hosts: all\n  roles:\n    - role: archf.openssh-server\n```\n\n### Install with git\n\nIf you do not want a global installation, clone it into your `roles_path`.\n\n```shell\ngit clone git@github.com:archf/ansible-openssh-server.git /path/to/roles_path\n```\n\nBut I often add it as a submdule in a given `playbook_dir` repository.\n\n```shell\ngit submodule add git@github.com:archf/ansible-openssh-server.git \u003cplaybook_dir\u003e/roles/openssh-server\n```\n\nAs the role is not managed by Ansible Galaxy, you do not have to specify the\ngithub user account.\n\nBasic usage is:\n\n```yaml\n- hosts: all\n  roles:\n  - role: openssh-server\n```\n## User Guide\n\nConfigure the sshd daemon using one of the variables below:\n\n```yaml\nsshd_Port: 22\nsshd_PermitRootLogin: 'yes'\nsshd_ChallengeResponseAuthentication: 'no'\nsshd_GSSAPICleanupCredentials: 'no'\nsshd_X11Forwarding: 'yes'\nsshd_ClientAliveInterval: 0\nsshd_ClientAliveCountMax: 3\nsshd_PasswordAuthentication: 'yes'\nsshd_Banner: 'none'\n```\n\n\n## Role Variables\n\nVariables are divided in three types.\n\nThe [default vars](#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 [mandatory variables](#mandatory-variables) section contains variables that\nfor several reasons do not fit into the default variables. As name implies,\nthey must absolutely be defined in the inventory or else the role will\nfail. It is a good thing to avoid reach for these as much as possible and/or\ndesign the role with clear behavior when they're undefined.\n\nThe [context variables](#context-variables) are shown in section below hint you\non how runtime context may affects role execution.\n\n### Default vars\n\nRole default variables from `defaults/main.yml`.\n\n```yaml\n# Currently supported settings are those grouped in the hash below. To override\n# a setting, create a key in your inventory and prefix it by `sshd_`. Casing\n# must be preserved and is the same as per the 'sshd_config' manual. For\n# example, to disable 'PasswordAuthentication', your would add the following key\n# in Ansible inventory variables: sshd_PasswordAuthentication: 'no'\nsshd_defaults:\n  Port: 22\n  PermitRootLogin: 'yes'\n  ChallengeResponseAuthentication: 'no'\n  GSSAPICleanupCredentials: 'no'\n  X11Forwarding: 'yes'\n  ClientAliveInterval: 0\n  ClientAliveCountMax: 3\n  PasswordAuthentication: 'yes'\n  Banner: 'none'\n\n```\n\n### Mandatory variables\n\nNone.\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/Debian.yml`.\n\n```yaml\nsshd_service_name: ssh\n\nsshd_packages:\n  - openssh-server\n\n```\n\nVariables loaded from `vars/RedHat.yml`.\n\n```yaml\nsshd_service_name: sshd\n\nsshd_packages:\n  - openssh-server\n\n```\n\n\n## License\n\nMIT.\n\n## Author Information\n\nFelix Archambault.\n\n---\nPlease do not edit this file. This role `README.md` was generated using the\n'ansidoc' python tool available on pypi!\n\n*Installation:*\n\n```shell\npip3 install ansidoc\n```\n\n*Basic usage:*\n\nValidate output by running a dry-run (will output result to stdout)\n```shell\nansidoc --dry-run \u003crolepath\u003e\n```\n\nGenerate you role readme file. Will write a `README.md` file under\n`\u003crolepath\u003e/README.md`.\n```shell\nansidoc \u003crolepath\u003e\n```\n\nAlso usable programatically from Sphinx.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchf%2Fansible-openssh-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchf%2Fansible-openssh-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchf%2Fansible-openssh-server/lists"}