https://github.com/wach-e/ansible-play
Automation process for installing and configuring Nginx reverse proxy on a remote machine using Ansible. The roles approach is implemented.
https://github.com/wach-e/ansible-play
ansible-playbook ansible-roles nginx
Last synced: about 2 months ago
JSON representation
Automation process for installing and configuring Nginx reverse proxy on a remote machine using Ansible. The roles approach is implemented.
- Host: GitHub
- URL: https://github.com/wach-e/ansible-play
- Owner: Wach-E
- Created: 2021-10-10T19:04:52.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-12T20:33:45.000Z (about 4 years ago)
- Last Synced: 2025-01-13T12:18:56.378Z (over 1 year ago)
- Topics: ansible-playbook, ansible-roles, nginx
- Language: Jinja
- Homepage: https://faun.pub/automate-nginx-setup-using-ansible-d2958e2b930c
- Size: 212 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Automating Nginx Setup using Ansible
Pre-requisites
---
Control Node:
* Python interpreter (preferably python3)
* OpenSSH Daemon
Managed Node:
* OpenSSH Daemon
* Sudo privileges
---

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

Note: It will be required to change the contents of the [inventory](https://github.com/Wach-E/Ansible-Play/blob/main/inventory) and file [vars/main](https://github.com/Wach-E/Ansible-Play/blob/main/roles/nginx/vars/main.yaml) 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:

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