Skip to content

Ansible environment - Ubuntu 16 and PHP 7

Notifications You must be signed in to change notification settings

kisphp/ansible-ub16php7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Environment Setup

Requirements

  • install vagrant
  • install vagrant-vbguest plugin
  • install VirtualBox 5.0+
  • install ansible
  • install NFS support

Setup production server

ansible-playbook -i env/prod/main.ini setup_server.yml -u root --ask-pass

Presetup

Add this line in your /etc/hosts file:

10.10.5.60 dev.local

And then it will be avaible in browser at: http://dev.local

Setup environment on Ubuntu

become root

sudo su

install vim, git

sudo apt-get install vim git -y

install ansible

sudo apt-get update
sudo apt-get install -y software-properties-common python-keyczar
sudo apt-add-repository ppa:ansible/ansible -y
sudo apt-get update
sudo apt-get install -y ansible
ansible --version

download vagrant

wget https://releases.hashicorp.com/vagrant/1.8.6/vagrant_1.8.6_x86_64.deb

install vagrant

sudo dpkg -i vagrant_1.8.6_x86_64.deb

download virtualbox

wget http://download.virtualbox.org/virtualbox/5.0.26/virtualbox-5.0_5.0.26-108824~Ubuntu~trusty_amd64.deb

install virtualbox

sudo dpkg -i virtualbox-5.0_5.0.26-108824~Ubuntu~trusty_amd64.deb

install vagrant vbguest

vagrant plugin install vagrant-vbguest

install NFS support

sudo apt install nfs-kernel-server

glone git repository on desktop

git clone git@github.com:kisphp/ansible-ub16php7.git ~/Desktop/www

go to project directory

cd ~/Desktop/www

run vagrant up

vagrant up

About

Ansible environment - Ubuntu 16 and PHP 7

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published