Skip to content

Installing LEMP Stack (Linux, NGINX, MySQL, and PHP ) on Linux Ubuntu using Ansible

License

Notifications You must be signed in to change notification settings

melorbany/lemp-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible for LEMP Stack (Linux, Nginx, MySQL, PHP)

Quickly install and configure the LEMP stack (Linux, Nginx, MySQL, PHP) on Ubuntu servers using this Ansible playbook.

Prerequisites

Ansible on your control machine SSH access with sudo privileges on your Ubuntu server

Setup

Update your inventory in the hosts file with your server's IP. Configure necessary variables in group_vars/all.

Usage

Run the playbook with:

ansible-playbook -i hosts site.yml

Roles

update: System update common: Basic tools nginx: Nginx server php: PHP and extensions mysql: MySQL database initapps: Application setup restartsvcs: Service restarts Customize site.yml to include or exclude specific roles as needed.

Support

For issues and enhancements, please open a GitHub issue.