Skip to content

A simple nginx deployment on AWS instances using ansible.

Notifications You must be signed in to change notification settings

olumayor99/nginx-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Provision 3 EC2 instances using the same key pair. 1 instance should be master, the others should be targets.

Download the keypair and place it in the same directory as the install-nginx.yaml file.

SSH into master and install ansible.

Add public IPs of target instances to the ansible hosts file using 'vim /etc/ansible/hosts and [myservers] as name.

Copy install-nginx.yaml, sample.txt, and the downloaded keypair to the master ans run 'ansible-playbook install-nginx.yaml --key-file ".pem" -v'.

SSH into one or both of the target machines to check the results.

The client I use for SSH is known as termius and I'll wholeheartedly recommend it.

About

A simple nginx deployment on AWS instances using ansible.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published