Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
menu_book Course Curriculum (Ansible) expand_more
Ansible / Roles and Reuse

handlers notify

Learn handlers notify in Ansible through a focused explanation, a topic-specific example, an engineering warning, and a mastery check.

12 min read • Intermediate
ansible-021.yml
yaml
- ansible.builtin.template:
    src: nginx.conf.j2
    dest: /etc/nginx/nginx.conf
  notify: reload nginx

handlers:
  - name: reload nginx
    ansible.builtin.service:
      name: nginx
      state: reloaded
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content