Skip to content

thisisshrocit/Ansible-VPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible-VPS

Image: Ubuntu 17.04 at Vultr

Pre configuration

ssh-copy-id -i .ssh/id_rsa.pub [email protected]
ssh [email protected] apt-get install python -y

Configuration

  1. Edit inventory, edit it to your vps ip or domain name and edit group_vars/all.yml.
  2. Encrypt shadowsocks password and Dropbox token if need, see Tutorial for more information
  3. Deploy your vps with command ansible-playbook -i inventory vps-deploy.yml --vault-password-file .vault_pass.txt at root path of this project. .vault_pass.txt is salt file you encrypt shadowsocks password and dropbox token.

Tasks

  • common
    • Update packages
    • Install oh my zsh
    • Tune kernel
  • swap
    • make swap file for vps
  • ssh
    • config ssh server, only ssh-key can login
  • shadowsocks
    • Install and config shadowsocks
    • Turn on bbr(feature at Ubuntu 17.04)
  • docker
    • Install docker
  • data
    • Sync data from Dropbox, include mongodb data(for flask), redis data(for celery), letsencrypt data(for https)

About

⚙ My VPS configuration at Vultr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages