{"id":20534564,"url":"https://github.com/qbit/ssh_pub","last_synced_at":"2026-03-10T03:34:32.614Z","repository":{"id":136347139,"uuid":"165428833","full_name":"qbit/ssh_pub","owner":"qbit","description":"Ansible playbook for simple pubkey managemeng","archived":false,"fork":false,"pushed_at":"2019-01-12T20:51:13.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T03:16:06.232Z","etag":null,"topics":[],"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/qbit.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":"2019-01-12T19:45:03.000Z","updated_at":"2019-01-12T20:51:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"19f031f3-145f-407c-9e91-f9d1d4985007","html_url":"https://github.com/qbit/ssh_pub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qbit/ssh_pub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbit%2Fssh_pub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbit%2Fssh_pub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbit%2Fssh_pub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbit%2Fssh_pub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qbit","download_url":"https://codeload.github.com/qbit/ssh_pub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qbit%2Fssh_pub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30323235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"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":[],"created_at":"2024-11-16T00:27:21.617Z","updated_at":"2026-03-10T03:34:32.586Z","avatar_url":"https://github.com/qbit.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"ssh_pub\n=========\n\nManage ssh pub keys.\n\nRole Variables\n--------------\n\n`ssh_pub` expects a data structure similar to the following:\n\n```\npub_keys: {\n  \"key_one\": \"ssh-rsa .....\",\n  \"key_two\": \"ssh-ed25519 ....\"\n  \"key_three\": \"ssh-ed25519 ....\"\n}\nuser_keys: {\n  user: {\n    keys: [\n      \"key_one\",\n      \"key_two\",\n      \"key_three\"\n    ],\n    exclusive: true,\n    hosts: {\n      'host_two': {\n        excludes: [\n          \"key_one\"\n        ]\n      },\n      'host_three': {\n        excludes: [\n          \"key_one\"\n        ]\n      }\n    }\n  },\n  root: {\n    keys: [\n      \"key_one\"\n    ],\n    exclusive: false,\n    hosts: {\n      '*': {\n        excludes: []\n      }\n    }\n  },\n}\n```\n\nThe hosts specified in `user_keys[user]['hosts']` must be `inventory_hostname`,\nit also only lets you specify excludes. Any host not in the dict will get the\npubkeys specified in the `keys` array.\n\nExample Playbook\n----------------\n\n    - hosts: servers\n      roles:\n         - { role: qbit.ssh_pub }\n\nLicense\n-------\n\nBSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqbit%2Fssh_pub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqbit%2Fssh_pub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqbit%2Fssh_pub/lists"}