Skip to content
RED SAGSkills
medium10 pts · first answer countsansibleconfiguration-management

When Ansible handlers run

In this playbook, when does the restart nginx handler run?

tasks:
  - name: Deploy nginx config
    template:
      src: nginx.conf.j2
      dest: /etc/nginx/nginx.conf
    notify: restart nginx

handlers:
  - name: restart nginx
    service: { name: nginx, state: restarted }
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions