August 2017
Intermediate to advanced
332 pages
9h 16m
English
As always, we can execute the playbook using the ansible-playbook command. Before that, we need to build the calculator project with Gradle.
$ ./gradlew build$ ansible-playbook playbook.yml
After the successful deployment, the service should be available and we can check it's working at http://192.168.0.242:8080/sum?a=1&b=2. As expected, it should return 3 as the output.
Note that we have configured the whole environment by executing one command. What's more, if we need to scale the service, then it's enough to add a new server to the inventory and re-run the ansible-playbook command.
We have showed how to use Ansible for environment configuration and application deployment. The next step is to use Ansible together with ...
Read now
Unlock full access