{"id":19472376,"url":"https://github.com/aboutbits/ansible-user","last_synced_at":"2025-02-25T15:24:19.976Z","repository":{"id":47840332,"uuid":"257901962","full_name":"aboutbits/ansible-user","owner":"aboutbits","description":"Ansible - User Role","archived":false,"fork":false,"pushed_at":"2023-07-29T06:24:29.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-08T05:51:33.839Z","etag":null,"topics":["ansible","ansible-role","user"],"latest_commit_sha":null,"homepage":"","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/aboutbits.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}},"created_at":"2020-04-22T12:57:51.000Z","updated_at":"2023-08-07T05:43:56.000Z","dependencies_parsed_at":"2023-01-18T04:25:11.872Z","dependency_job_id":null,"html_url":"https://github.com/aboutbits/ansible-user","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutbits%2Fansible-user","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutbits%2Fansible-user/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutbits%2Fansible-user/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutbits%2Fansible-user/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aboutbits","download_url":"https://codeload.github.com/aboutbits/ansible-user/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240692396,"owners_count":19842244,"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":["ansible","ansible-role","user"],"created_at":"2024-11-10T19:14:14.159Z","updated_at":"2025-02-25T15:24:19.903Z","avatar_url":"https://github.com/aboutbits.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible User Role\n=================\n\nUser creation role.\n\n## Role Variables\n\n- `user_name`: The name of the user\n- `user_password`: The password for the user\n- `user_groups`: The groups of the user\n- `user_authorized_keys`: The authorized keys of the user\n\n## Example Playbook\n\n```yaml\n- hosts: all\n  tasks:\n    - ansible.builtin.include_role:\n        name: ansible-user\n      vars:\n        user_name: alex\n        user_password: sha512-hashed-password\n        user_groups:\n          - docker\n        user_authorized_keys:\n          - {{ lookup('file', 'path-to-key') }}\n```\n\n## Password\n\nTo create a password hash for a user, the following command must be extecuted:\n\n```\nmkpasswd --method=SHA-512\n```\n\nThe command is contained within the package \"whois\" that can be installed on\nLinux by executing `apt-get install -y whois`.\n\n## Versioning\n\nIn order to have a verioning in place and working, create leightweight tags that point to the appropriate minor release versions.\n\nCreating a new minor release:\n\n```bash\ngit tag v2\ngit push --tags\n```\n\nReplacing an already existing minor release:\n\n```bash\ngit tag -d v2\ngit push origin :refs/tags/v2\ngit tag v2\ngit push --tags\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutbits%2Fansible-user","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faboutbits%2Fansible-user","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutbits%2Fansible-user/lists"}