https://github.com/kzap/ansible-playbook-lamp-stack
Setup a LAMP Stack using Ansible
https://github.com/kzap/ansible-playbook-lamp-stack
ansible ansible-playbook devops lamp-server
Last synced: 13 days ago
JSON representation
Setup a LAMP Stack using Ansible
- Host: GitHub
- URL: https://github.com/kzap/ansible-playbook-lamp-stack
- Owner: kzap
- Created: 2017-04-18T07:54:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-20T17:44:50.000Z (about 9 years ago)
- Last Synced: 2025-11-20T02:30:59.923Z (7 months ago)
- Topics: ansible, ansible-playbook, devops, lamp-server
- Homepage: https://examine.com
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
Building a LAMP stack using Ansible Playbooks.
-------------------------------------------
These playbooks require Ansible 1.9.
This LAMP stack can be on a single node or multiple nodes. The inventory file
'hosts' defines the nodes in which the stacks should be configured.
[webservers]
appserver01
[dbservers]
database01
Here the webserver would be configured on a server called "appserver01" and the dbserver on a
server called "database01".
Before running install the Ansible Galaxy roles using `ansible-galaxy`:
ansible-galaxy --roles-path galaxy-roles/ install -r requirements.yml
On setting up a brand new server, the stack can be deployed using the following command:
ansible-playbook -i inventories/production/hosts site.yml -e 'first_run=1' -k
Upon subsequent runs, the stack can be deployed / updated using the following command:
ansible-playbook -i inventories/production/hosts site.yml