ansible-role-systemd_networkd/tasks
Dmitriy Rabotyagov 597adb7b2d Fix defenition of multiple static routes for network
Current logic was relying on iteration inside the template. However,
since config_template module was used to deliver network configuration
it was merging sections having same name together.

While this behaviour is correct one for config_template as all sections
must be unique from ConfigParser perspective and in order to apply
overrides properly, it was not suiting the way how routes should be
defined in networkd configuration.

To workaround the issue we place routes separately under <network>.d
directory, which should be supported by systemd [1]

[1] https://www.freedesktop.org/software/systemd/man/latest/systemd.network.html

Closes-Bug: #2045819
Change-Id: I01aa44dcdc85e32d18dd52bcd4878a9017fb6ead
(cherry picked from commit 70442c5efb)
2023-12-15 18:55:46 +01:00
..
main.yml Fix defenition of multiple static routes for network 2023-12-15 18:55:46 +01:00