I would like to know if there’s a module I can use to manage static routes on a Linux device (Ubuntu 18.04)
I have found this question: Add static route with Ansible
but this was asked almost 4 years ago and ansible has moved forward since then so thought it was worth asking again, or am I still restricted to bash CLI?
shareimprove this question
asked 20 hours ago
5577 bronze badges
add a comment
As before, Ansible modules specifically for routing exist for network gear and Windows boxes.
As usual when a task specific module does not exist, the general pattern is to template out a config file. In this case, for netplan.