{"id":29976117,"url":"https://github.com/ome/ansible-role-local-accounts","last_synced_at":"2025-08-26T19:13:35.453Z","repository":{"id":50131400,"uuid":"78220324","full_name":"ome/ansible-role-local-accounts","owner":"ome","description":"Create or remove local user accounts.","archived":false,"fork":false,"pushed_at":"2024-01-29T14:38:05.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":5,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-07-19T19:33:19.717Z","etag":null,"topics":["ansible","role"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/ome/local_accounts/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ome.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2017-01-06T16:21:48.000Z","updated_at":"2023-11-17T21:30:05.000Z","dependencies_parsed_at":"2023-12-18T23:05:50.055Z","dependency_job_id":"4d194df5-7355-4b65-b726-617865c967f9","html_url":"https://github.com/ome/ansible-role-local-accounts","commit_stats":{"total_commits":33,"total_committers":5,"mean_commits":6.6,"dds":0.4545454545454546,"last_synced_commit":"a9039073aa380cb39ed54383f265be7492f0e10f"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ome/ansible-role-local-accounts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-local-accounts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-local-accounts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-local-accounts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-local-accounts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ome","download_url":"https://codeload.github.com/ome/ansible-role-local-accounts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-local-accounts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267538867,"owners_count":24103903,"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-07-28T02:00:09.689Z","response_time":68,"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":["ansible","role"],"created_at":"2025-08-04T08:35:16.026Z","updated_at":"2025-08-04T08:35:16.780Z","avatar_url":"https://github.com/ome.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Local Accounts\n==============\n\n[![Actions Status](https://github.com/ome/ansible-role-local-accounts/workflows/Molecule/badge.svg)](https://github.com/ome/ansible-role-local-accounts/actions)\n[![Ansible Role](https://img.shields.io/badge/ansible--galaxy-local_accounts-blue.svg)](https://galaxy.ansible.com/ui/standalone/roles/ome/local_accounts/)\n\nCreate or remove local user accounts.\n\n\nRole Variables\n--------------\n\n- `local_accounts_create`: A list of dictionaries containing information on the user to be created (default: empty).\n  Each item may contain the following fields:\n  - `user`: username (required)\n  - `uid`: user-ID (required)\n  - `groups`: optional list of groups to be appended to the user's default groups\n  - `password`: optional password hash, only set if the user is created in this invocation\n  - `sshpubkey`: optional SSH public key to be added to the authorized_keys file\n  - `sshexclusive`: optional, if `True` and `sshpubkey` is specified, removes all other non-specified keys. Otherwise, appends the key to any existing keys if not already present. Default: `False.\n  - `require_first_password`: optional, if `True` attempt to force a newly created user to change their password on first login, default `False`.\n- `local_accounts_groups`: A list of dictionaries containing information on the group to be created (default: empty).\n  Each item must contain the following fields:\n  - `gid`: group-ID\n  - `group`: group-name\n\nUIDs and GIDs are currently required since this role is intended for use across multiple connected nodes.\n\nFor example, if you set `sshpubkey`, omit `password` and set `require_first_password: True` the user should be able to log in over SSH using their key, and should be prompted to set a password immediately.\nHowever, failing to set a password will also allow any existing user to `su` to the new users without a password.\n\n- `local_accounts_delete`: List of usernames to be deleted (default: empty). Home directories will not be removed.\n\n\nExample Playbook\n----------------\n\n    - hosts: localhost\n      roles:\n      - role: ome.local_accounts\n        local_accounts_create:\n        - user: test1\n          uid: 1001\n        - user: test2\n          uid: 1002\n          groups: wheel\n          sshpubkey: \"ssh-rsa XXXXX\"\n        local_accounts_delete:\n        - user3\n        - user4\n\nAuthor Information\n------------------\n\nome-devel@lists.openmicroscopy.org.uk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fome%2Fansible-role-local-accounts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fome%2Fansible-role-local-accounts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fome%2Fansible-role-local-accounts/lists"}