Skip to content

gruz0/ansible-debian

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Debian Web Server Playbook

Run on the remote machine:

# useradd -m -s /bin/bash deploy
# passwd deploy
# apt-get update
# apt-get upgrade
# apt-get install sudo
# echo 'deploy ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/deploy

Then on local machine:

$ ssh-copy-id deploy@hostname
$ make provision

Vagrant

Just run:

make vagrant

Let's Encrypt

To generate ssl certificate on host:

sudo certbot certonly --webroot -w /var/www/app/current/public -d example.com

About

Debian Rails Server Playbook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 85.8%
  • Makefile 14.2%