Preparing application server

In this post I would like to present preparation of application server, mainly automation of Docker installation. We will need this software in next steps, when deploying and containerising web applications.

I’ve prepared a simple task which consists of adding the repository, installing required packages and running the Docker service. This task also makes sure the service stays enabled. See content below:

To configure application server run appserver.yml playbook from project directory utilizing command:

ansible-playbook ./appserver.yml

After running the playbook you should see familiar output:

After this is done it is worth to make sure that Docker service is running. You can do this using command:

systemctl status docker.service

And here is the output you should receive:

That’s it for this blog entry. In my next post I will present how to prepare role for simple webserver hosting a static content (sample HTML webpage).

Leave a Reply

Your email address will not be published.