Solution to problem using ansible-server and client.
1.1K
Build a LEMP server on Ubuntu 16.04 using Ansible
The following technologies were used:
# git clone [email protected]:hpierce/docker-ansible-project.git
# cd docker-ansible-project
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_ip.sh
It should be 172.17.0.2, unless you already have something running.
This uses hpierce/docker-ansible-server as the base
# docker build -t ansible .
# docker run -h ansible -it ansible /bin/bash
root@ansible:/#
If the ip of the client is 172.17.0.2 then you can run this
root@ansible:/# ansible-playbook /root/lemp.yml
Example 172.17.0.3
root@ansible:/# ansible-playbook /root/lemp.yml -i 172.17.0.3,
Content type
Image
Digest
Size
274.8 MB
Last updated
almost 10 years ago
docker pull hpierce/docker-ansible-project