{"id":18669646,"url":"https://github.com/thejmazz/playbooks","last_synced_at":"2026-04-15T14:35:21.082Z","repository":{"id":80679752,"uuid":"96052433","full_name":"thejmazz/playbooks","owner":"thejmazz","description":null,"archived":false,"fork":false,"pushed_at":"2018-02-08T23:17:30.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-18T08:34:56.781Z","etag":null,"topics":["ansible","ansible-playbooks","ansible-roles","dotfiles","yadm"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/thejmazz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-02T22:33:13.000Z","updated_at":"2023-03-10T10:36:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d6e1f9c-4a71-4405-8dbe-25223248ed80","html_url":"https://github.com/thejmazz/playbooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thejmazz/playbooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thejmazz%2Fplaybooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thejmazz%2Fplaybooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thejmazz%2Fplaybooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thejmazz%2Fplaybooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thejmazz","download_url":"https://codeload.github.com/thejmazz/playbooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thejmazz%2Fplaybooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31846095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T13:28:40.153Z","status":"ssl_error","status_checked_at":"2026-04-15T13:28:29.396Z","response_time":63,"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-playbooks","ansible-roles","dotfiles","yadm"],"created_at":"2024-11-07T08:48:16.053Z","updated_at":"2026-04-15T14:35:21.036Z","avatar_url":"https://github.com/thejmazz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Some Plays\n\nMy playbooks for, given a blank install of\n\n- Ubuntu 16.04 (currently supported)\n- Arch Linux (todo)\n- MacOS (todo)\n\nget up to speed with my preferred configurations and programs, and in the case\nof an external server, be prepared to serve https requests via [Let's\nEncrypt][letsencrpypt]. These playbooks make use of, or are used from, my\n[dotfiles][dottos] managed by [yadm][yadm].\n\nEventually it should support root and non-root access. For example, install\nprograms to `~/bin` if root access is not available.\n\nI have purposefully left out configuration such as\n\n```yaml\nbecome: yes\nremote_user: root\nbecome_method: sudo\n```\n\nsince it makes more sense to set these as applicable from the CLI, imho.  The\nabove equivalent in CLI arguments is `-b -u root -K` or `--become --user root\n--ask-become-pass`. (Note the default for `--user` is root).\n\nIf you do not have an ssh key for root, use `-k` or `--ask-pass`. If you do\nhave an ssh key for root, ensure it is added to your ssh-agent (this wont work\nthrough docker), or use `--private-key=PRIVATE_KEY_FILE`. *Note*. Using a key\ndoes not work currently since there are file permission and ownership issues\nconcerning `~/.ssh`.\n\nFor choosing hosts, you can make your own `hosts` file and then set it with\n`-i hosts`. Alternatively you can pass a comma seperated host list (with a\ncomma at the end) like `-i \"127.0.0.1,\"`.\n\nTake care when running through a docker container - ssh keys, `know_hosts`,\netc, will need to be volume mounted in. When running through docker, use\n`docker-compose run --rm ansible` in place of `ansible`:\n\n```bash\nalias ansible=\"docker-compose run --rm ansible\"\n```\n\n## 0. Install programs as root\n\nThis is required to be done before creating a user since the user uses these\nprograms (specifically, commands in [`~/.yadm/bootstrap`][bootstrap] may fail).\nThis can be skipped if instead your yadm bootstrap runs ansible with the\nlocalhost as target.\n\n*This step should be optional. I have still yet to organize the differences\nbetween root and non-root setups.*\n\n```bash\nansible ./plays/base.yml -i \"127.0.0.1,\" --ask-pass\n```\n\n*Note*\nYou'll need to install the roles locally:\n\n```bash\nansible-galaxy install -r requirements.yml --roles-path ./roles\n```\n\n## 1. Create your user\n\nTo create a new user:\n\n```bash\nansible ./plays/user.yml --ask-pass \\\n--extra-vars \"public_key=~/.ssh/some_key.pub\"\n```\n\nTo delete a user (prompted for delete home + backup)\n\n```bash\nansible ./plays/delete-user.yml --ask-pass\n```\n\n## Todos\n\n- [ ] tpm\n- [ ] `bind-key -t vi-copy v begin-selection` unkown command\n- [ ] prefix\n- [ ] statusline\n- [ ] colors (for windows, status)\n- [ ] tab switching\n- [ ] choose interface for ifstat\n- [ ] local nvim\n- [ ] local tmux\n- [ ] local yadm\n- [ ] packer support for Digital Ocean, AWS, etc\n- [ ] docker entrypoint that adds keys to ssh-agent\n- [ ] docker entrypoint handles `~/.ssh` owner UID and GID\n- [ ] vim tab color to match tmux tabs\n- [ ] run ansible with target localhost from yadm bootstrap\n- [ ] don't run container as root\n\n[bootstrap]: https://github.com/thejmazz/dottos/blob/master/.yadm/bootstrap\n[dottos]: https://github.com/thejmazz/dottos\n[letsencrpypt]: https://letsencrypt.org/\n[yadm]: https://github.com/TheLocehiliosan/yadm\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthejmazz%2Fplaybooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthejmazz%2Fplaybooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthejmazz%2Fplaybooks/lists"}