{"id":20522347,"url":"https://github.com/mrhdolek/setup-vps","last_synced_at":"2026-04-13T12:02:05.822Z","repository":{"id":169773577,"uuid":"565801989","full_name":"MrHDOLEK/setup-vps","owner":"MrHDOLEK","description":"An Ansible playbook to setup VPS.","archived":false,"fork":false,"pushed_at":"2023-08-06T12:26:12.000Z","size":48,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T13:43:30.001Z","etag":null,"topics":["ansible","ansible-playbook","cotabo","debian","docker","infrastructure"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrHDOLEK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-14T11:03:50.000Z","updated_at":"2023-06-20T17:14:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"03b0ab54-46f6-4788-a453-8dcc3ffd70b2","html_url":"https://github.com/MrHDOLEK/setup-vps","commit_stats":null,"previous_names":["mrhdolek/setup-vps"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MrHDOLEK/setup-vps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrHDOLEK%2Fsetup-vps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrHDOLEK%2Fsetup-vps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrHDOLEK%2Fsetup-vps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrHDOLEK%2Fsetup-vps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrHDOLEK","download_url":"https://codeload.github.com/MrHDOLEK/setup-vps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrHDOLEK%2Fsetup-vps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31751705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["ansible","ansible-playbook","cotabo","debian","docker","infrastructure"],"created_at":"2024-11-15T22:35:02.669Z","updated_at":"2026-04-13T12:02:05.763Z","avatar_url":"https://github.com/MrHDOLEK.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible: VPS Setup\n\n## Requirements\n\n- docker\n- docker-compose\n  or\n- python\n- ansible installed for your local machine\n\n## What is set up ?\n\n- AppArmor\n- Auditd\n- Cron\n- Iptables\n- journald\n- sshd\n- sysctl\n- timesyncd\n- fail2ban\n- docker and docker-compose\n- create user\n- off root login\n- remove unnecessary services\n\n## Setup\n\n1. `cp inventory.example inventory`\n2. You need to change these variables in the inventory file to\n    - debian -\u003e Ip address or hostname\n    - ansible_user=test -\u003e The name of the user by which we will initiate the server. Ideally, it should be root or a\n      user in the sudo group\n    - ansible_ssh_pass=test -\u003e Password to user above\n3. You must replace in the vps.yml this value\n    - username -\u003e The username to which we will be logging in\n    - password -\u003e Hash of your password. To create it you need to run this\n      command `make create_password PASS=\u003cyour password\u003e`\n\n### By docker\n\n1. `make start` or `docker-compose up -d`\n2. `make bash` or `docker exec -it \u003ccontainer id\u003e bash`\n3. `ansible-playbook -i inventory vps.yml`\n4. If we want to install the selected modules then `ansible-playbook -i inventory vps.yml --tags \"user,docker\"`\n\n### By ansible for local machine\n\n1. `ansible-galaxy install -r requirements.yml`\n2. `ansible-playbook -i inventory vps.yml`\n3. If we want to install the selected modules then `ansible-playbook -i inventory vps.yml --tags \"user,docker\"`\n\n## All commands\n\n- `make help`\n\n## FAQ\n\n##\n\n**Q:** Where can I get knowledge in linux administration ? ?\n\n**A:** Collection of\nknowledge [mikrus](https://www.notion.so/Biblioteka-Mikrusa-3c757621cf9b4fbfb3909fc04a77dbcf?p=9003f1758646468ebe6dbb5afb1a8f4d\u0026pm=s)\n\n##\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrhdolek%2Fsetup-vps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrhdolek%2Fsetup-vps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrhdolek%2Fsetup-vps/lists"}