michaelrigart / ansible-role-interfaces

An ansible role for configuring different network interfaces
GNU General Public License v3.0
83 stars 62 forks source link

[Question] Is it possible to set the default route? #45

Closed aanno2 closed 5 years ago

aanno2 commented 5 years ago

Is it possible to set the default route?

markgoddard commented 5 years ago

Yes - add something like this to an interface:

          route:
          - network: 0.0.0.0
            netmask: 0.0.0.0
            gateway: 192.168.1.1
aanno2 commented 5 years ago

Thank you very much!