- name: restart depending services when: - certchanged loop: "{{ cert.depending_services }}" service: name: "{{ item }}" state: restarted