{"id":22218256,"url":"https://github.com/antmelekhin/ansible-role-openssh","last_synced_at":"2026-04-12T18:36:21.938Z","repository":{"id":153990312,"uuid":"304875747","full_name":"antmelekhin/ansible-role-openssh","owner":"antmelekhin","description":"An Ansible role to configure the OpenSSH server and client.","archived":false,"fork":false,"pushed_at":"2024-12-08T11:21:01.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T06:29:32.463Z","etag":null,"topics":["ansible","ansible-role","linux","openssh-client","openssh-server","windows"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/ui/standalone/roles/antmelekhin/openssh/","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antmelekhin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2020-10-17T12:44:56.000Z","updated_at":"2024-12-08T11:21:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"d6e5da75-5c30-419e-8afe-ea6e586d25bc","html_url":"https://github.com/antmelekhin/ansible-role-openssh","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antmelekhin%2Fansible-role-openssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antmelekhin%2Fansible-role-openssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antmelekhin%2Fansible-role-openssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antmelekhin%2Fansible-role-openssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antmelekhin","download_url":"https://codeload.github.com/antmelekhin/ansible-role-openssh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245414550,"owners_count":20611367,"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","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","ansible-role","linux","openssh-client","openssh-server","windows"],"created_at":"2024-12-02T22:19:55.520Z","updated_at":"2026-04-12T18:36:21.904Z","avatar_url":"https://github.com/antmelekhin.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"OpenSSH\n=======\n\nAn Ansible role to configure the OpenSSH server and client.\n\nRequirements\n------------\n\n- Supported version of Ansible: 2.12 and higher. Systems with Python versions below than 3.7 are not compatible with ansible-core 2.17 (see [ansible/ansible#83357](https://github.com/ansible/ansible/issues/83357#issuecomment-2150254754)).\n- `pywinrm` is a python library for connection Ansible to Windows hosts via [WinRM](https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html).\n- Supported platforms:\n  - Amazon Linux\n    - 2\n    - 2023\n  - Debian\n    - 10\n    - 11\n    - 12\n  - Fedora\n    - 39\n    - 40\n  - RHEL\n    - 7\n    - 8\n    - 9\n  - Ubuntu\n    - 18.04\n    - 20.04\n    - 22.04\n    - 24.04\n  - Windows\n    - 2019\n\nRole Variables\n--------------\n\nAll variables that can be overridden are stored in the [defaults/main.yml](https://github.com/antmelekhin/ansible-role-openssh/blob/main/defaults/main.yml) file.\nPlease refer to the [meta/argument_specs.yml](https://github.com/antmelekhin/ansible-role-openssh/blob/main/meta/argument_specs.yml) file for a description of the available variables.\nSimilarly, descriptions and defaults for preset variables can be found in the [vars/main.yml](https://github.com/antmelekhin/ansible-role-openssh/blob/main/vars/main.yml) file.\n\nDependencies\n------------\n\nWhen using Ansible core, you will also need to install the following Ansible collections:\n\n```yaml\n---\ncollections:\n  - name: community.general\n  - name: community.windows\n```\n\nExample Playbook\n----------------\n\nConfigure OpenSSH server and enable single sign-on.\n\n```yaml\n---\n- name: 'Setup OpenSSH'\n  hosts: all\n\n  roles:\n    - role: 'antmelekhin.openssh'\n      openssh_sshd_password_authentication: true\n      openssh_sshd_gssapi_authentication: true\n```\n\nConfigure OpenSSH server and enable single sign-on for server_admins group.\n\n```yaml\n---\n- name: 'Setup OpenSSH'\n  hosts: all\n\n  roles:\n    - role: 'antmelekhin.openssh'\n      openssh_sshd_match:\n        - type: 'Group'\n          name: 'server_admins'\n          config:\n            PasswordAuthentication: 'yes'\n            GSSAPIAuthentication: 'yes'\n```\n\nLicense\n-------\n\nMIT\n\nAuthor Information\n------------------\n\nMelekhin Anton.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantmelekhin%2Fansible-role-openssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantmelekhin%2Fansible-role-openssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantmelekhin%2Fansible-role-openssh/lists"}