Basic setup of nginx on an EC2 instance with Ansible

David Bouchare
Apr 27, 2016 · 2 min read
ssh -i path_to_my_key/my_key.pem ubuntu@DNS_name_of_the_EC2_instance
brew install ansible
mkdir /etc/ansible
[defaults]private_key_file=path_to_my_key/my_key.pemremote_user = ubuntu
ansible all -m ping
ansible-playbook path_to_my_playbook/nginx_install.yml

David Bouchare

Written by

Solutions Engineer @datadoghq. Paris. Berlin before that. Twitter: @dbouchare

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade