December 2017
Intermediate to advanced
364 pages
7h 30m
English
Now, the developer has updated the code (or) server is patched for some security vulnerabilities. We want to deploy the new version of production site with green deployment.
The playbook looks very simple as follows, it will update the configuration and reloads the haproxy service to serve the new production deployment:
- name: Updating to GREEN deployment hosts: proxyserver become: yes tasks: - name: updating proxy configuration template: src: haproxy.cfg.j2 dest: /etc/haproxy/haproxy.cfg - name: updating the service service: name: haproxy state: reloaded - debug: msg: "GREEN deployment successful. Please check your server :)"
Then, we can check our production site again to see the update deployment ...
Read now
Unlock full access