{"id":18978057,"url":"https://github.com/simplificator/ansible-role-app_user","last_synced_at":"2026-01-26T18:53:28.353Z","repository":{"id":66456812,"uuid":"65391579","full_name":"simplificator/ansible-role-app_user","owner":"simplificator","description":"Ansible role to create an unprivileged user on a Linux system including distributing authorised SSH keys.","archived":false,"fork":false,"pushed_at":"2023-05-22T18:45:13.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-01T10:15:36.009Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/simplificator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2016-08-10T14:58:10.000Z","updated_at":"2021-12-28T13:32:32.000Z","dependencies_parsed_at":"2024-11-08T15:35:45.768Z","dependency_job_id":"87321cc4-6ec0-4274-a480-b1ed5d6f4802","html_url":"https://github.com/simplificator/ansible-role-app_user","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplificator%2Fansible-role-app_user","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplificator%2Fansible-role-app_user/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplificator%2Fansible-role-app_user/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplificator%2Fansible-role-app_user/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplificator","download_url":"https://codeload.github.com/simplificator/ansible-role-app_user/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239978184,"owners_count":19728290,"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":[],"created_at":"2024-11-08T15:32:03.686Z","updated_at":"2026-01-26T18:53:23.301Z","avatar_url":"https://github.com/simplificator.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role: App User\n\n[![CI](https://github.com/simplificator/ansible-role-app_user/workflows/CI/badge.svg?event=push)](https://github.com/simplificator/ansible-role-app_user/actions?query=workflow%3ACI)\n\nAn Ansible role to provision a Linux user without privileges, including distributing authorized keys to it.\n\n## Requirements\n\nN/A\n\n## Role Variables\n\nYou need to define the following variable:\n\n* `app_user`: The name of your user which should be created by this role.\n* `authorized_keys`: A JSON list of public SSH keys which can login as this user.\n\n## Define authorized_keys and additional_authorized_keys\n\n`authorized_keys` should be defined in group variables. It's a JSON object where the key is `\"{{ app_user }}\"` and the value is an array of SSH keys. It would look like this:\n\n```yaml\nauthorized_keys: \n  {\n    \"{{ app_user }}\": [\n      \"key1\",\n      \"key2\",\n      \"key3\"\n    ]\n  }\n```\n\nIf you need to add additional keys, e.g. because for one system, a customer of yours has access, you can provide `additional_authorized_keys`. It follows the same format as `authorized_keys`.\n\n```yaml\nadditional_authorized_keys: \n  {\n    \"{{ app_user }}\": [\n      \"key1\",\n      \"key2\",\n      \"key3\"\n    ]\n  }\n```\n\n## Dependencies\n\nNone.\n\n## Example Playbook\n\n```yaml\n- hosts: myserver\n  roles:\n    - { role: simplificator.app_user }\n  vars:\n    authorized_keys: \n      {\n        \"{{ app_user }}\": [\n          \"key1\",\n          \"key2\",\n          \"key3\"\n        ]\n      }\n```\n\n## License\n\nMIT / BSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplificator%2Fansible-role-app_user","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplificator%2Fansible-role-app_user","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplificator%2Fansible-role-app_user/lists"}