NGINX from PPA

Note

These directions are way out of date. Do not use these! I have since switched to a different process or tool since writing this particular article, but keeping it up for posterities sake, until I can properly replace it.

What have I changed to you ask? Anything building I’ve tried switching over to Ansible to handle in a much more programatic way. Others might be tools that I just don’t use at all anymore, due to changing DNS hosts.

The PPA is Ubuntu’s way of trying to make it easier to add extra repo’s to the apt-get installer system. It auto-adds auth keys, along with repo addresses. And it adds a means of verifying what programs and whatnot are inside of the repo as well, since you can look up the info on Canonical’s Website.

NGINX’s PPA

Note

For the $nginx variable at the end of the first code line, replace it with either stable for their Stable line or development for their Mainline. Mainline is what they consider their “beta” line. Stable being their, well, “stable” line.

sudo add-apt-repository ppa:nginx/$nginx
sudo apt-get update && sudo apt-get install nginx

I will create a NGINX configuration “How-To” at some point in the future.

You can set the server address either inside of /etc/ansible/hosts or in a hostfile in the repo. Then, change the name of the host inside of your ansible-playbook as well.