All technological notes.
handler
- name: Deploy Application
hosts: application_servers
tasks:
- name: Copy Application Code
copy:
src: app_code/
dest: /opt/application/
notify: Restart Application Service # notify the handler
handlers:
- name: Restart Application Service
service:
name: application_service
state: restarted