{"id":19109966,"url":"https://github.com/coopdevs/sys-admins-role","last_synced_at":"2025-08-16T22:34:20.396Z","repository":{"id":96224515,"uuid":"130348184","full_name":"coopdevs/sys-admins-role","owner":"coopdevs","description":"Ansible role to create users for system administrators ","archived":false,"fork":false,"pushed_at":"2023-09-07T12:00:36.000Z","size":26,"stargazers_count":5,"open_issues_count":4,"forks_count":2,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-02-22T11:18:12.817Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coopdevs.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":"2018-04-20T10:35:20.000Z","updated_at":"2024-06-30T09:20:36.000Z","dependencies_parsed_at":"2024-11-09T04:34:41.045Z","dependency_job_id":null,"html_url":"https://github.com/coopdevs/sys-admins-role","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/coopdevs/sys-admins-role","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coopdevs%2Fsys-admins-role","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coopdevs%2Fsys-admins-role/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coopdevs%2Fsys-admins-role/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coopdevs%2Fsys-admins-role/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coopdevs","download_url":"https://codeload.github.com/coopdevs/sys-admins-role/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coopdevs%2Fsys-admins-role/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270781200,"owners_count":24643805,"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-08-16T02:00:11.002Z","response_time":91,"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-09T04:23:02.442Z","updated_at":"2025-08-16T22:34:20.154Z","avatar_url":"https://github.com/coopdevs.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sys Admins Role\n=========\n\nThis role help you to mantain the system administration users.\n\nWith this role you can:\n\n* Create a group for the system administrators to manage the permissions easy\n* Create system administrator users\n* Remove system administrator users\n* Add `sudo` permissions to system administrator users\n\nThis role need be runned with `sudo` access.\n\nRole Variables\n--------------\n\n\u003e **This variables must be declared to run this role.**\n\nThe role variables are:\n\n### `sys_admins`\n\nA list of users. Any item need be in the next structure:\n\n```yaml\nsys_admins:\n  - name: user1\n    ssh_key: \"~/.ssh/id_rsa.pub\"\n    state: present\n  - name: user2\n    ssh_key: \"~/.ssh/id_rsa.pub\"\n    state: absent\n``` \n\nSystem Administrators vars:\n\n- `name`: User name\n- `ssh_key`: Path of ssh key to be copied in user ssh authorized keys file.\n- `state`: Choices absent or present\n\n### `sys_admin_group`\n\nThe name of the system adnimistrators group\n\n```yaml\nsys_admin_group: sysadmin-group\n``` \nExample Playbook\n----------------\n\n```yaml\n- hosts: servers\n  roles:\n    - role: coopdevs.sys_admins\n      sys_admin_group: sysadmin-group\n      sys_admins:\n       - name: sysadmin\n         ssh_key: \"~/.ssh/id_rsa.pub\"\n         state: present\n```\n\nLicense\n-------\n\nGPLv3\n\nAuthor Information\n------------------\n\nCoopdevs http://coopdevs.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoopdevs%2Fsys-admins-role","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoopdevs%2Fsys-admins-role","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoopdevs%2Fsys-admins-role/lists"}