ansible/ansible — pull request #5219 by Apsu (2013-12-08 23:55:50+00:00)
Title: Add interfaces module

This module is for configuring the /etc/network/interfaces file on Debian-based systems. It provides somewhat basic functionality, covering all of the major essential directives for general network configuration, but more advanced features can be added later (such as bridges, vlans, bonds, multiple addresses without aliasing, etc).

As a precaution against stomping unrecognized directives, the module will log anything it ignores and provides the force parameter (default=no) to prevent/allow rewriting the file if anything was ignored. That said, comments are not considered "ignored" for force purposes, and are simply tossed entirely. Caveat emptor!