{"id":18041260,"url":"https://github.com/cblavier/vscode-ansible","last_synced_at":"2025-08-27T11:20:07.052Z","repository":{"id":138039919,"uuid":"259281987","full_name":"cblavier/vscode-ansible","owner":"cblavier","description":"Ansible playbook for a cloud based VScode server (Elixir + JS)","archived":false,"fork":false,"pushed_at":"2021-03-08T14:32:16.000Z","size":38,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T01:44:27.948Z","etag":null,"topics":[],"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/cblavier.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":"2020-04-27T10:34:27.000Z","updated_at":"2024-07-28T07:03:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"a2755d97-3576-4dbe-a9dd-2d37fc782ac3","html_url":"https://github.com/cblavier/vscode-ansible","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cblavier/vscode-ansible","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cblavier%2Fvscode-ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cblavier%2Fvscode-ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cblavier%2Fvscode-ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cblavier%2Fvscode-ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cblavier","download_url":"https://codeload.github.com/cblavier/vscode-ansible/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cblavier%2Fvscode-ansible/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272325508,"owners_count":24914642,"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-08-27T02:00:09.397Z","response_time":76,"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":[],"created_at":"2024-10-30T15:08:55.572Z","updated_at":"2025-08-27T11:20:06.975Z","avatar_url":"https://github.com/cblavier.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Motivations\n\nI wanted a seamless way to switch between devices while coding (macbookpro / imac / ipad).\n\n- [VSCode offers a remote SSH](https://code.visualstudio.com/docs/remote/ssh) feature which allows your local VScode editor to remotely edit code, run terminals ... which is perfect\nfor computers.\n\n- [coder.com](http://coder.com) also offers a feature to make a full featured VSCode environment run in your browser or as a PWA (which can be helpful from an iPad)\n\n# Components\n\nThis project will help at setting up a ubuntu VPS with :\n- Docker\n- code-server\n- elixir (with asdf)\n- chromedriver\n- node (with nvm)\n- postgresql\n- nginx as a reverse proxy in front of code-server, webpack and your project\n- various shell things such as ohmyzsh, autojump, tmux or direnv\n\n# Setup\n\nGuidelines to provision a development server with Ansible\n\n- first, provision a VPS from any cloud vendor (I use a Digital Ocean $40/mo VPS with Ubuntu 18.04)\n\n- make sure you can root ssh to your newly created VPS\n\n- register following domain names all set with `A record` to your VPS IP\n  - `ssh.mydomain.com` used by you or ansible to ssh to your VPS\n  - `vscode.mydomain.com` to access code-server web interface\n  - `webpack.mydomain.com` to reach webpack dev server, that will hot render assets\n  - `myproject.mydomain.com` to reach your dev server\n\n- locally install ansible: `brew install ansible`.\n\n- create an ansible config file in `~/.ansible.cfg`.\n  ```\n  [defaults]\n  inventory = ~/.ansible/hosts\n  ```\n\n- create an ansible inventory in `~/.ansible/hosts`\t- create an ansible inventory in `~/.ansible/hosts`.\n  ```\n  ssh.mydomain.com\n  ```\n\n- copy `variables/all.template.yml` to `variables/all.yml` and change variables to your convenience.\n\n- run `ansible-playbook playbook.yml`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcblavier%2Fvscode-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcblavier%2Fvscode-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcblavier%2Fvscode-ansible/lists"}