michaelrigart / ansible-role-interfaces

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

Check the active interface state against configuration #28

Closed markgoddard closed 6 years ago

markgoddard commented 6 years ago

Sometimes the configuration files written to a host may not change, but the active network state does not match the requested configuration. This can happen following a previous configuration failure, where the configuration files were successfully written but bouncing one or more interfaces failed. We can also use this check after bouncing the interfaces to check that the configuration has been successfully applied.

Currently IP routing tables, rules and routes are not checked, as these are not available as ansible facts. In future, a routing fact gathering module could be built to gather the required facts.