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 }Discussion 0
Join free to post in the discussion.
Related questions
- Idempotency in AnsibleDevOps Engineer
- What an Ansible inventory holdsDevOps Engineer
- How Ansible reaches Linux hostsDevOps Engineer
- Ad-hoc command vs playbookDevOps Engineer
- Where a role's tasks liveDevOps Engineer
- Rendering a config file per hostDevOps Engineer
- Running a task as rootDevOps Engineer
- What Ansible facts areDevOps Engineer