{"id":18754469,"url":"https://github.com/juju4/ansible-adduser","last_synced_at":"2025-06-10T20:10:43.709Z","repository":{"id":65547865,"uuid":"51712693","full_name":"juju4/ansible-adduser","owner":"juju4","description":"simple ansible role to add a unix user with its ssh key","archived":false,"fork":false,"pushed_at":"2025-04-05T18:57:54.000Z","size":539,"stargazers_count":9,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T19:30:02.884Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/juju4.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-14T20:46:56.000Z","updated_at":"2025-04-05T18:57:58.000Z","dependencies_parsed_at":"2023-09-26T12:54:02.726Z","dependency_job_id":"178d15f4-67c1-4501-9827-c02736fb3a1d","html_url":"https://github.com/juju4/ansible-adduser","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juju4%2Fansible-adduser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juju4%2Fansible-adduser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juju4%2Fansible-adduser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juju4%2Fansible-adduser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juju4","download_url":"https://codeload.github.com/juju4/ansible-adduser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650574,"owners_count":21139670,"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-07T17:29:09.452Z","updated_at":"2025-04-13T00:32:13.231Z","avatar_url":"https://github.com/juju4.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status - Master](https://github.com/juju4/ansible-adduser/workflows/AnsibleCI/badge.svg)](https://github.com/juju4/ansible-adduser/actions?query=branch%3Amain)\n[![Actions Status - Devel](https://github.com/juju4/ansible-adduser/workflows/AnsibleCI/badge.svg?branch=devel)](https://github.com/juju4/ansible-adduser/actions?query=branch%3Adevel)\n\n# adduser ansible role\n\nA simple ansible role to add a unix user with its ssh key.\n\n## Requirements \u0026 Dependencies\n\n### Ansible\nIt was tested on the following versions:\n * 2.10-17\n\n### Operating systems\n\nTested on Ubuntu 24.04, 22.04, 20.04, Centos/Rockylinux 9.\n\n## Example Playbook\n\nJust include this role in your list.\nFor example\n\n```\n- host: myhost\n  roles:\n    - juju4.adduser\n```\n\nyou probably want to review variables\n\n## Variables\n\n```\nadduser_user_name: deploy\nadduser_user_comments: \"\"\nadduser_sudoroot: true\nadduser_password: change_me_or_die!\nadduser_public_keys:\n- dummykey.pub\n```\n* adduser_user_name: username to add\n* adduser_password: input should be hash except for darwin. please use ansible vault to store your real password\n* adduser_public_keys: list of corresponding authorized keys\n\n\n## Continuous integration\n\nThis role has a travis basic test (for github), more advanced with kitchen and also a Vagrantfile (test/vagrant).\nDefault kitchen config (.kitchen.yml) is lxd-based, while (.kitchen.vagrant.yml) is vagrant/virtualbox based.\n\nOnce you ensured all necessary roles are present, You can test with:\n```\n$ gem install kitchen-ansible kitchen-lxd_cli kitchen-sync kitchen-vagrant\n$ cd /path/to/roles/juju4.adduser\n$ kitchen verify\n$ kitchen login\n$ KITCHEN_YAML=\".kitchen.vagrant.yml\" kitchen verify\n```\nor\n```\n$ cd /path/to/roles/juju4.adduser/test/vagrant\n$ vagrant up\n$ vagrant ssh\n```\nor\n```\n$ pip install molecule docker\n$ molecule test\n$ MOLECULE_DISTRO=ubuntu:24.04 molecule test --destroy=never\n```\n\n\n## Troubleshooting \u0026 Known issues\n\n* under OpenBSD, leaving password field cause an issue.\n\n* ```repomd.xml does not match metalink for epel``` on Centos/Redhat\nuncomment baselist and comment mirrorlist in /etc/yum.repos.d/epel.repo\n(http://stackoverflow.com/questions/30949707/centos-6-6-errno-1-repomd-xml-does-not-match-metalink-for-updates-when-tryin)\nCentos6 might also need ansible 2.1 (not 2.2) because of ```ERROR! Unexpected Exception: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'```\n\n* Adding ssh key task still seen as successful even if failed because a key was not readable, path incorrect or else. need to review log with verbosity 1.\n\n## License\n\nBSD 2-clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuju4%2Fansible-adduser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuju4%2Fansible-adduser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuju4%2Fansible-adduser/lists"}