This role can be used to manage network interface configuration on Debian
and derivative operating systems. It manages configuration in
/etc/network/interfaces
directory and can be used to create different
interface layouts across the cluster.
debops.ifupdown
role tries to recognize several environments (LXC
container, OpenVZ container, system with installed NetworkManager) and can
automatically select one of the suggested configurations. For most
scenarios, debops.ifupdown
will try to configure up to two network
interfaces (non-existent interfaces are gracefully skipped) with network
bridges attached to them, which allows to easily connect virtual machines
or containers to the public or private network.
In case an advanced configuration is required (more than two network
interfaces, bonding, modem connections, NAT, etc.), you can easily override
automatically selected configuration using Ansible inventory. This role can
also be used as a dependency of another role which allows for example to
easily manage NAT networks using debops.nat
role.
Some features of interface declarations require additional packages. These
are installed with this package unconditionally. For now this is only
resolvconf, which will start to manage your :file:/etc/resolv.conf
file.
This role requires at least Ansible v1.7.0
. To install it, run:
ansible-galaxy install debops.ifupdown
More information about debops.ifupdown
can be found in the
official debops.ifupdown documentation.
You may need to include missing roles from the DebOps common playbook into your playbook.
Try DebOps now for a complete solution to run your Debian-based infrastructure.
ifupdown
role was written by:
License: GPLv3
This role is part of the DebOps project. README generated by ansigenome.