August 2017
Intermediate to advanced
332 pages
9h 16m
English
The production environment should be as close to the staging environment as possible. The Jenkins step for the release should also be very similar to the stage that deploys the application to the staging environment.
In the simplest scenario, the only differences are the inventory file and the application configuration (for example, in case of a Spring Boot application, we would set a different Spring profile, which results in taking a different properties file). In our case, there are no application properties, so the only difference is the inventory file.
stage("Release") { steps { sh "ansible-playbook playbook.yml -i inventory/production" }}
Read now
Unlock full access