{"id":24806523,"url":"https://github.com/wynandbooysen/onepasswordrandomrootpw","last_synced_at":"2026-05-18T15:35:57.010Z","repository":{"id":139240497,"uuid":"288702905","full_name":"wynandbooysen/onepasswordrandomrootpw","owner":"wynandbooysen","description":"Use 1Password's CLI client to generate and apply random root passwords to Linux servers","archived":false,"fork":false,"pushed_at":"2020-08-19T11:10:13.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-18T20:11:31.510Z","etag":null,"topics":["1password","1password-cli","ansible","ansible-playbook","root"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/wynandbooysen.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":"2020-08-19T10:33:14.000Z","updated_at":"2020-08-19T11:10:16.000Z","dependencies_parsed_at":"2023-05-17T17:00:15.366Z","dependency_job_id":null,"html_url":"https://github.com/wynandbooysen/onepasswordrandomrootpw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wynandbooysen/onepasswordrandomrootpw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wynandbooysen%2Fonepasswordrandomrootpw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wynandbooysen%2Fonepasswordrandomrootpw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wynandbooysen%2Fonepasswordrandomrootpw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wynandbooysen%2Fonepasswordrandomrootpw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wynandbooysen","download_url":"https://codeload.github.com/wynandbooysen/onepasswordrandomrootpw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wynandbooysen%2Fonepasswordrandomrootpw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33183093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["1password","1password-cli","ansible","ansible-playbook","root"],"created_at":"2025-01-30T08:28:46.623Z","updated_at":"2026-05-18T15:35:56.991Z","avatar_url":"https://github.com/wynandbooysen.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OnePassword Random Root Password Changer\n\nUse 1Password's CLI client to generate and apply random root passwords to Linux servers\n\n## Requirements \n\nRequires a 1Password account, the 1Password cli tool (op) and Ansible\n\n## Download 1Password cli tool\n\n```sh\nwget https://cache.agilebits.com/dist/1P/op/pkg/v1.5.0/op_linux_amd64_v1.5.0.zip\nunzip op_linux_amd64_v1.5.0.zip\nmv op /usr/local/bin/\n```\n\n## Create inventory file -\u003e nodes\n\nCreate a list of servers in the nodes file, with one server name per line.\n\nThis gets used to create/update the 1Password credentials, as well as an inventory file for the Ansible-playbook that updates the password\n\n## Login to 1Password using the cli\n\nLike any of their clients, 2FA is supported.\n\nIntially log in specifying subdomain and user account email:\n\n```sh\nop signin example.1password.com wendy_appleseed@example.com\n```\nSupply \n\nAfterwards you can use:\n\n```sh\neval $(op signin YOUR_1PASSWORD_SUBDOMAIN)\n```\nto sign in again before executing scripts\n\n\n# Creating, changing and updating the root password\n\n## Create 1Password entries for servers\n\nRun (create_root_pw.sh) after login into 1Password cli, this will create the passwords on 1Password using the server names as the item name, defaults to vault name = LinuxRootPasswords and username = root with randomized 16 charcter password\n\n## Change Root passwords using Ansible\n\nRun the Ansible-playbook\n\n\n```sh\nansible-playbook -i nodes onepassword.yml\n```\n\nor if key based authentication is not configured yet:\n\n```sh\nansible-playbook -i nodes onepassword.yml -u ANSIBLE_USER --ask-pass\n```\n## Update 1Password entries for servers (Change it, but keeps history of previous password)\n\nRun (update_root_pw.sh) to change exisint passwords in 1Password, and then run the Ansbile-playbook again to apply the new password","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwynandbooysen%2Fonepasswordrandomrootpw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwynandbooysen%2Fonepasswordrandomrootpw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwynandbooysen%2Fonepasswordrandomrootpw/lists"}