I want to do something like this :
- copy:
src: file{{ item }}.xml
dest: target_file{{ item }}.xml
notify: restart process{{ item }}
with_sequence: start=1 end={{ number_of_process }}
Expected result : the process 1 is restarted only if configuration file target_file1 has been modified, the process 2 is restarted only if configuration file target_file2 has been modified etc.
Real result is the restart of all process when one configuration file is modified.
Any idea to restart only the desired process ?