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
- Host: GitHub
- URL: https://github.com/kdpuvvadi/ansible-lamp
- Owner: kdpuvvadi
- License: mit
- Created: 2021-09-01T10:22:50.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-02T07:39:02.000Z (almost 5 years ago)
- Last Synced: 2025-05-13T21:08:15.094Z (about 1 year ago)
- Topics: ansible, ansible-playbook, apache2, lamp-stack, mysql
- Language: Jinja
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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

## 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
[](https://twitter.com/kdpuvvadi)