An open API service indexing awesome lists of open source software.

https://github.com/kdpuvvadi/ansible-lamp

Ansible playbook to deploy LAMP Stack(Linux,APache2,MySql, PHP) on a Debian based systems
https://github.com/kdpuvvadi/ansible-lamp

ansible ansible-playbook apache2 lamp-stack mysql

Last synced: 3 months ago
JSON representation

Ansible playbook to deploy LAMP Stack(Linux,APache2,MySql, PHP) on a Debian based systems

Awesome Lists containing this project

README

          

# LAMP Stack deployment using ansible playbook

Ansible playbook to deploy LAMP Stack(Linux,APache2,MySql, PHP) on a Debian based systems

![CI Status](https://github.com/kdpuvvadi/ansible-lamp-ubuntu/actions/workflows/lint.yml/badge.svg)

## Getting Started

### Inventory

* Copy sample invetory file `inventory.ini.j2` to `inventory.ini` using `cp inventory.ini.j2 inventory.ini`
* Change `ansible_host` value with host IP
* Add ssh username to `ansible_user`

### Variables

* Copy sample variable file located in vars directory `defaults.yml.j2` to `defaults.yml` using `cp ./vars/defaults.yml.j2 ./vars/defaults.yml`
* set values based on your requirements

### Connection Test

Check the connection with host by running

```bash
ansible all -m ping
```

## Deployment

To deploy LAMP stack on debian system run

```bash
ansible-playbook main.yml
```
append `-K` if ansible users needs sudo password to elevate sudo privileges

### Test

To check apache installation visit host `[ip]` and to check php.ino visit `[ip]/info.php`. To check mysql installation, ssh into your host with `ssh user@ip`. login to mysql shell with `sudo mysql -u root -p` and enter {{ mysql_root_password }}

## License

[MIT](https://choosealicense.com/licenses/mit/)


## Authors

- [@kdpuvvadi](https://www.github.com/kdpuvvadi)


## 🔗 Links
[![twitter](https://img.shields.io/badge/twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/kdpuvvadi)