{"id":19163335,"url":"https://github.com/programmer-ke/ansible-ubuntu-common","last_synced_at":"2026-05-18T09:02:50.758Z","repository":{"id":142050848,"uuid":"78425245","full_name":"programmer-ke/ansible-ubuntu-common","owner":"programmer-ke","description":"An ansible script that bootstraps an ubuntu server","archived":false,"fork":false,"pushed_at":"2017-02-09T11:47:56.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T22:42:48.327Z","etag":null,"topics":["ansible-role","fail2ban","reboot","ssh","ubuntu-server"],"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/programmer-ke.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-01-09T12:06:11.000Z","updated_at":"2018-01-20T23:00:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"72715f40-be48-4062-8c4c-a70102c10b21","html_url":"https://github.com/programmer-ke/ansible-ubuntu-common","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/programmer-ke/ansible-ubuntu-common","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmer-ke%2Fansible-ubuntu-common","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmer-ke%2Fansible-ubuntu-common/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmer-ke%2Fansible-ubuntu-common/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmer-ke%2Fansible-ubuntu-common/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/programmer-ke","download_url":"https://codeload.github.com/programmer-ke/ansible-ubuntu-common/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programmer-ke%2Fansible-ubuntu-common/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278931653,"owners_count":26070788,"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-10-08T02:00:06.501Z","response_time":56,"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":["ansible-role","fail2ban","reboot","ssh","ubuntu-server"],"created_at":"2024-11-09T09:14:53.278Z","updated_at":"2025-10-08T10:50:10.224Z","avatar_url":"https://github.com/programmer-ke.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-ubuntu-common\nAn ansible script that bootstraps an ubuntu server\n\nThe overall steps are:\n\n- Lock down ssh\n\n- Lock down sudoers\n\n- Set up hostname\n\n- NTP for time synchronization\n\n- Locale configuration\n\n- Firewall setup with fail2ban to block ssh bruteforce attempts\n\n- Unattended security upgrades\n\n- Useful tools/packages from default ubuntu repo e.g. emacs :)\n\n## Required Variables\n\n- `short_name` - system name\n\n- `ip_address` - Static IP address of the server\n\n- `etc_hosts_entry` - An entry in /etc/hosts mapping your static ip to your fqdn\n\n- `locale` - Your default system locale e.g. en_US.UTF-8\n\n- `timezone` - Timezone as appears in tzdata e.g. 'Africa/Nairobi'\n\n- `allowed_tcp_ports` - Allowed iptables INPUT TCP ports (including ssh)\n\n- `additional_iptables_rules` - A list of additional iptables rules\n\n- `fail2ban_mail_recipient` - Mail recepient for fail2ban notifications (default root@localhost)\n\n- `reboot_on_upgrade` - whether to reboot when unattended upgrades require it (default \"no\")\n\n- `reboot_time` - What time to reboot in format HH:MM (default \"now\")\n\n- `additional_packages` - Additional packages from default repo that should be present (default: emacs-nox)\n\n## TODO\n\n- Add tests\n\n- add to galaxy\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammer-ke%2Fansible-ubuntu-common","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogrammer-ke%2Fansible-ubuntu-common","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogrammer-ke%2Fansible-ubuntu-common/lists"}