Skip to content

Automation process for installing and configuring Nginx reverse proxy on a remote machine using Ansible. The roles approach is implemented.

Notifications You must be signed in to change notification settings

Wach-E/Ansible-Play

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automating Nginx Setup using Ansible

Pre-requisites

Control Node:

  • Python interpreter (preferably python3)
  • OpenSSH Daemon

Managed Node:

  • OpenSSH Daemon
  • Sudo privileges

Alt

The files contained in this repo is geared towards the automation process for installing and configuring Nginx reverse proxy on a remote machine using Ansible.

The role technique is implemented with its standard file structure

Nginx role file tree

Note: It will be required to change the contents of the inventory and file vars/main to suite your remote host

To use, navigate to the cloned directory in the control node and run:

ansible-playook main.yaml

On a successful play, the output would look like this:

Ansible playbook output

Navigate to the IP of the remote machine and visit the root directory on port 80:

Nginx running successfully

About

Automation process for installing and configuring Nginx reverse proxy on a remote machine using Ansible. The roles approach is implemented.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published