Skip to content

Tomcat, Apache and MySQL configuration using Ansible in RedHat 7.1

License

Notifications You must be signed in to change notification settings

mariakavya/ansible-config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-config

Software management configuration using ansible

System: Red Hat Enterprise Linux Server release 7.1

Softwares:

  • Apache
  • Mysql
  • PHP
  • Wordpress
  • OpenJDK 7
  • Tomcat

Required: Ansible

Enable EPEL

sudo yum install wget
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sudo rpm -ivh epel-release-7-5.noarch.rpm

Add mysql in repos

wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm

Setup ansible: yum install ansible

Configure mysql and setup a test db

ansible-playbook -i hosts mysql.yml

Configure apache

ansible-playbook -i hosts apache.yml

Only php

ansible-playbook -i hosts apache.yml --tags "php"

Configure tomcat

ansible-playbook -i hosts tomcat.yml

Single Step Configuration

ansible-playbook -c local -i hosts site.yml

About

Tomcat, Apache and MySQL configuration using Ansible in RedHat 7.1

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 89.1%
  • PHP 10.9%