Public | Automated Build

Last pushed: a year ago
Short Description
Solution to problem using ansible-server and client.
Full Description


Build a LEMP server on Ubuntu 16.04 using Ansible

The following technologies were used:

  • Ansible
  • Nginx
  • MySQL
  • PHP 7.0

Clone this repository

# git clone
# cd docker-ansible-project

Run an ansible client in the background

It is bare bones Ubuntu 16.04
It will be a web application so use port 8080

# docker run -d -p 8080:80 hpierce/docker-ansible-client

Get the ip of the ansible client with

# ./

It should be, unless you already have something running.

Build and run the ansible server

This uses hpierce/docker-ansible-server as the base

# docker build -t ansible .
# docker run -h ansible -it ansible /bin/bash

Install LEMP on client using ansible server

If the ip of the client is then you can run this

root@ansible:/# ansible-playbook /root/lemp.yml

Otherwise use that ip address on the command line


root@ansible:/# ansible-playbook /root/lemp.yml -i,
Docker Pull Command
Source Repository