Tech Challenge
2026-11-12
⚙️
Daily Tech Challenge
DevOps
medium
Question 1 of 5
Both template tasks below report changed on a run against web-1. When does nginx actually restart?
Example
tasks:
- name: Write site A config
ansible.builtin.template:
src: a.conf.j2
dest: /etc/nginx/conf.d/a.conf
notify: restart nginx
- name: Write site B config
ansible.builtin.template:
src: b.conf.j2
dest: /etc/nginx/conf.d/b.conf
notify: restart nginx
handlers:
- name: restart nginx
ansible.builtin.service:
name: nginx
state: restartedThursday, November 12, 2026 · A new challenge drops every day