{"id":13753253,"url":"https://github.com/yoshz/ansible-digitalocean","last_synced_at":"2025-05-09T20:35:11.372Z","repository":{"id":23605692,"uuid":"26974642","full_name":"yoshz/ansible-digitalocean","owner":"yoshz","description":"DIgital Ocean Ansible playbooks","archived":true,"fork":false,"pushed_at":"2017-02-11T18:41:07.000Z","size":13,"stargazers_count":83,"open_issues_count":0,"forks_count":31,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-29T00:14:20.697Z","etag":null,"topics":["ansible","digital-ocean","digital-ocean-bootstrap","playbook"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/yoshz.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}},"created_at":"2014-11-21T19:29:55.000Z","updated_at":"2023-09-08T16:52:20.000Z","dependencies_parsed_at":"2022-08-22T02:10:29.066Z","dependency_job_id":null,"html_url":"https://github.com/yoshz/ansible-digitalocean","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshz%2Fansible-digitalocean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshz%2Fansible-digitalocean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshz%2Fansible-digitalocean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshz%2Fansible-digitalocean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoshz","download_url":"https://codeload.github.com/yoshz/ansible-digitalocean/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253321850,"owners_count":21890479,"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","digital-ocean","digital-ocean-bootstrap","playbook"],"created_at":"2024-08-03T09:01:19.119Z","updated_at":"2025-05-09T20:35:06.331Z","avatar_url":"https://github.com/yoshz.png","language":"JavaScript","funding_links":[],"categories":["playbook"],"sub_categories":[],"readme":"Digital Ocean Bootstrap\n=======================\n\nBootstrap Digital Ocean droplets using Ansible to:\n\n* Configure SSH key\n* Launch a droplet\n* Configure DNS domain\n* Destroy droplet\n\nInspired by [hostmaster/ansible-digitalocean-bootstrap](https://github.com/hostmaster/ansible-digitalocean-bootstrap).\n\n\nInstallation\n------------\n\n* Install [Ansible 2.0](http://docs.ansible.com/ansible/intro_installation.html)\n\n* Make sure your python path is configured correctly. For example:\n\n```\n    # On Ubuntu\n    export PYTHONPATH=/usr/local/lib/python2.7/site-packages\n    # On OS X\n    export PYTHONPATH=/Library/Python/2.7/site-packages\n```\n\n* Copy vars.yml.dist to vars.yml and change the variables to your need.\n\n\nDigital Ocean configuration\n---------------------------\n\nCreate a new API key on the [API access page](https://cloud.digitalocean.com/api_access). \nAdd the api_token to `vars.yml`.\n\n\nPlaybooks\n=========\n\nlaunch.yml\n----------\n\nLaunch and provision a new server on Digital Ocean.\n\n```\n    ansible-playbook -i hosts launch.yml\n```\n\nWhat this Playbook do for you?\n\n- configure swap file\n- install ufw, fail2ban\n- configure ufw allow ports for SSH\n- make sshd more secure: \n  - PermitRootLogin=no\n  - PasswordAuthentication=no\n  - AllowGroups=sudo\n- config sudoers\n\ndestroy.yml\n-----------\n\nDestroys a server on Digital Ocean.\n\n```\n    ansible-playbook -i hosts destroy.yml\n```\n\nKnown issues\n------------\n\n* dopy 0.3.7 is broken (error \"name 'DoError' is not defined\").\n  Downgrade use version 0.3.5 using `pip install dopy==0.3.5`.\n\n* digital_ocean_domain is broken (error \"'Domain' object has no attribute 'id'\") when you run the plabook the second time.\n  Keep the \"DNS name\" empty to avoid this error.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoshz%2Fansible-digitalocean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoshz%2Fansible-digitalocean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoshz%2Fansible-digitalocean/lists"}