https://github.com/devops-rob/ansible-role-lampache
Ansible to configure a LAMP environment
https://github.com/devops-rob/ansible-role-lampache
Last synced: 5 months ago
JSON representation
Ansible to configure a LAMP environment
- Host: GitHub
- URL: https://github.com/devops-rob/ansible-role-lampache
- Owner: devops-rob
- Created: 2018-02-06T23:08:02.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-11T23:18:08.000Z (almost 7 years ago)
- Last Synced: 2025-04-02T11:49:08.879Z (10 months ago)
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/robertraybarnes/ansible-role-lampache)
Lampache
=========
Installs Apache, MariaDB and Python to Create a LAMP stack on CentOS and Ubuntu linux servers
Requirements
------------
None
Role Variables
--------------
```yaml
# Role variables for epel mirrors and MariaDB repository for centos
mariadb_url: http://yum.mariadb.org/10.1/centos7-amd64
epel_url: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
# Roles defaults are specific to the supported distributions respectively
packages:
base:
- "wget"
- "nano"
- "net-tools"
- "unzip"
- "zip"
- "ntp"
- "firewalld"
lamp:
- "httpd"
- "mariadb-server"
ubuntu:
- "apache2"
- "mariadb-server"
python:
- "python"
- "gcc"
- "python-pip"
- "python-psutil"
- "python-devel"
- "MySQL-python.x86_64"
- "mysql-connector-python"
python_ubuntu:
- "python"
- "python3"
- "python-dev"
- "python-pymysql"
- "python-pip"
- "gcc"
- "python-psutil"
firewall:
services:
- "http"
- "https"
ports:
- "3306/tcp"
system_services:
- "httpd"
- "ntpd"
- "firewalld"
- "mariadb"
ubuntu_services:
- "apache2"
- "mysql"
```
Dependencies
------------
None
Example Playbook
----------------
```yaml
- hosts: servers
roles:
- devopsrob.lampache
become: yes
```
License
-------
BSD / MIT
Author Information
------------------
Robert Barnes (DevOpsRob)