{"id":21326126,"url":"https://github.com/mikepruett3/ansible-role-sudo","last_synced_at":"2026-04-30T19:32:21.885Z","repository":{"id":39715006,"uuid":"377217399","full_name":"mikepruett3/ansible-role-sudo","owner":"mikepruett3","description":"Ansible role to configure sudo settings on Linux Servers.","archived":false,"fork":false,"pushed_at":"2024-06-10T22:14:02.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T11:37:35.951Z","etag":null,"topics":["ansible","ansible-role","security","sudo","sudoers","sudoers-configuration"],"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/mikepruett3.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-06-15T15:52:04.000Z","updated_at":"2024-09-05T22:43:18.000Z","dependencies_parsed_at":"2025-01-22T12:29:04.379Z","dependency_job_id":"a140ab74-1f44-48bc-8689-e5f4febca837","html_url":"https://github.com/mikepruett3/ansible-role-sudo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mikepruett3/ansible-role-sudo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikepruett3%2Fansible-role-sudo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikepruett3%2Fansible-role-sudo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikepruett3%2Fansible-role-sudo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikepruett3%2Fansible-role-sudo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikepruett3","download_url":"https://codeload.github.com/mikepruett3/ansible-role-sudo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikepruett3%2Fansible-role-sudo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32475192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","ansible-role","security","sudo","sudoers","sudoers-configuration"],"created_at":"2024-11-21T21:08:37.750Z","updated_at":"2026-04-30T19:32:21.868Z","avatar_url":"https://github.com/mikepruett3.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible Role: Sudo\n=========\n\nAnsible role to configure sudo settings on Linux Servers.\n\nRequirements\n------------\n\nThe role does not require anyting to run on RHEL and its derivatives.\n\nRole Variables\n--------------\n\nAvailable variables are listed below, along with default values (see ```defaults/main.yml```):\n\n``` yaml\nsudo_group: \"mygroup\"\nsudo_commands: \"ALL=SHUTDOWN_CMDS, SERVICE\"\n```\n\n```sudo_group``` **(Required)** The group (local or external) to grant access via sudo\n\n```sudo_commands``` **(Required)** The command alises (configured in aliases.j2) to assign for the group\n\nRole variables can be stored with the hosts.yaml file, or in the main variables file.\n\nDependencies\n------------\n\nNone.\n\nExample Playbook\n----------------\n\n``` yaml\n    - hosts: servers\n      roles:\n         - role: mikepruett3.sudo\n```\n\nTags\n----\n\nThe **group** tag has been configured to allow for playbook reused when creating multiple group files for **sudoers** access.\n\n``` yaml\n    - hosts: servers\n      roles:\n\n         - role: mikepruett3.sudo\n           vars:\n            sudo_group: \"mygroup\"\n            sudo_commands: \"ALL=SHUTDOWN_CMDS, SERVICE\"\n\n         - role: mikepruett3.sudo\n           tags:\n            - group\n           vars:\n            sudo_group: \"my2ndgroup\"\n            sudo_commands: \"ALL=SHUTDOWN_CMDS, SERVICE\"\n```\n\nLicense\n-------\n\nMIT\n\nAuthor Information\n------------------\n\nRole created by [mikepruett3](https://github.com/mikepruett3) on [Github.com](https://github.com/mikepruett3/ansible-role-sudo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikepruett3%2Fansible-role-sudo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikepruett3%2Fansible-role-sudo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikepruett3%2Fansible-role-sudo/lists"}