brahmlower / ansible-factorio

A role for creating Factorio servers
https://galaxy.ansible.com/bplower/factorio/
4 stars 6 forks source link

Handler applies to only one changed service rather than all changed services #6

Open brahmlower opened 7 years ago

brahmlower commented 7 years ago

Handlers don't restart all changed services when the role is specified multiple times. For example, running example 3 in the README.md will result in the service factorio_1 running, however factorio_2 will not be enabled or started. This appears to be as a result of the handler only being registered to run for the first service. A cursory google search indicates there are workarounds, but I will need to invest more time to finding an ideal solution.