$ ansible-playbook -i production digitalocean-hosts.yml
update security group (iptables)
$ ansible-playbook -i production digitalocean-security.yml
how to add new app host
Create droplent using DigitalOceqn UI. (private IP is needed)
Edit invenotry file, production to add private IP of the new host
update /etc/hosts with the above
update security group with the above
update iptable on ngix
$ ansible-playbook -i production nrp.yml --tags iptables
# make sure that iptables is updated
$ ssh sgnrp2
$ iptables -S
# in case it's not updated. Run below
$ /tmp/iptables.sh
update ngix config
$ ansible-playbook -i production nrp.yml --tags update_config