15

How do I add and delete routes in my route table with Ansible?

I can't seem to find any network or system modules for this.

Jay
  • 275
  • 1
  • 2
  • 6

2 Answers2

6

AFAIK, you're stuck using the command module to make your change using a shell command.

EEAA
  • 109,363
  • 18
  • 175
  • 245
2

net_static_route is available since ansible 2.4.

Depending on your requirements it might provide what you need.

Matthias
  • 179
  • 1
  • 7