https://github.com/estaji/configure-lemp-server
Ansible role to install and maintain Nginx, Mariadb, PHP on Linux
https://github.com/estaji/configure-lemp-server
ansible lemp
Last synced: 7 months ago
JSON representation
Ansible role to install and maintain Nginx, Mariadb, PHP on Linux
- Host: GitHub
- URL: https://github.com/estaji/configure-lemp-server
- Owner: estaji
- License: apache-2.0
- Created: 2025-03-04T13:44:33.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-04T13:46:53.000Z (7 months ago)
- Last Synced: 2025-03-04T14:33:56.058Z (7 months ago)
- Topics: ansible, lemp
- Language: Jinja
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
This Ansible role installs and maintains a Linux server that contains Nginx webserver, Mariadb database, PHP and other useful packages.Not only can this role install a LEMP (Linux+Nginx+Mariadb+PHP) server (on first execution), but also the role provides management features using flag variables (on next executions).
# How
## Requirements
Do these steps before using this role:
- Update authorized_keys for root user
- Change ssh port and disable PasswordAuthentication in ssh configurations (recommended)
- Copy ssl certificates and dhparams.pem to /etc/nginx/ssl/
- Ensure website files directory is copied to /usr/share/nginx/ & (for Wordpress website) Modify wp-config.php file
- Configure the Mariadb and import the database after running this playbook## Usage
To use the role, you can create your own playbook.yaml and inventory files.Then modify vars section in your playbook.yaml file to overwrite variables.
Run the playbook.
## Caution
Running this playbook will overwrite and change some configuration files.Add the SSH port in templates/iptables.j2 file.
# Contribution
Feel free and don't hesitate to contribute to this repository.