{"id":18860729,"url":"https://github.com/melihovv/initial-server-setup","last_synced_at":"2026-05-03T09:36:20.793Z","repository":{"id":80682455,"uuid":"98065529","full_name":"melihovv/initial-server-setup","owner":"melihovv","description":"Ansible playbook for initial ubuntu 16.04 server setup","archived":false,"fork":false,"pushed_at":"2017-07-25T15:45:21.000Z","size":29,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-30T20:24:17.229Z","etag":null,"topics":["ansible","ansible-playbook","ansible-roles","fail2ban","iptables","ntp-server","sshd","ubuntu-server","ubuntu1604"],"latest_commit_sha":null,"homepage":null,"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/melihovv.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-23T00:31:56.000Z","updated_at":"2019-08-22T09:13:24.000Z","dependencies_parsed_at":"2023-03-03T02:46:06.872Z","dependency_job_id":null,"html_url":"https://github.com/melihovv/initial-server-setup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melihovv%2Finitial-server-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melihovv%2Finitial-server-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melihovv%2Finitial-server-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melihovv%2Finitial-server-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melihovv","download_url":"https://codeload.github.com/melihovv/initial-server-setup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239800428,"owners_count":19699128,"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":["ansible","ansible-playbook","ansible-roles","fail2ban","iptables","ntp-server","sshd","ubuntu-server","ubuntu1604"],"created_at":"2024-11-08T04:26:32.323Z","updated_at":"2026-02-09T02:30:17.939Z","avatar_url":"https://github.com/melihovv.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Initial Ubuntu 16.04 Server Setup\n\n## What this playbook does\n\n- installs python2 and aptitude\n- upgrades all software\n- creates user with sudo rights\n- configures sshd: disables root login and password authentication, also allows to login only user created on prev step\n- installs\n  - git\n  - ntp\n  - vim\n  - tmux\n  - htop\n  - curl\n- configures automatic security updates (do not reloads server, only installs updates)\n- setups timezone\n- configures iptables and fail2ban\n- create swap file\n\n## inventory file\n\nCreate `inventory` file. Its content is something like this\n\n```\n[web]\n46.101.210.137\n```\n\n## Install deps\n\n```bash\nansible-galaxy install -r requirements.yml\n```\n\n## Initial setup\n\nBy default on ubuntu 16.04 there is no python 2 and aptitude.\nTo fix it run:\n\n```bash\nansible-playbook initial-setup.yml\n```\n\nBeside it this playbook also creates user and configures ssh server.\n\n## Environment variables\n\nCopy `vars/main.yml.example` to `vars/main.yml` and change\nvariable values for your needs.\n\nTo generate password use\n\n```bash\nsudo apt-get install -y whois\nmkpasswd --method=SHA-512\n```\n\n## Run\n\n```bash\nansible-playbook main.yml\n```\n\nTo run only specific roles\n\n```bash\nansible-playbook main.yml --roles=user\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelihovv%2Finitial-server-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelihovv%2Finitial-server-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelihovv%2Finitial-server-setup/lists"}