kpfleming.systemd_networkd.bond role – Manages systemd-networkd bonded network devices.
Note
This role is part of the kpfleming.systemd_networkd collection (version 25.9.0).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it use: ansible-galaxy collection install kpfleming.systemd_networkd.
To use it in a playbook, specify: kpfleming.systemd_networkd.bond.
Entry point main – Manages systemd-networkd bonded network devices.
Synopsis
- This role will create (or update) a number of items in /etc/systemd/network for each specified bonded device: 1) A .netdev file for the bond device 2) .network files for each link that is a member of the bond; files will be named with the bond device’s name and a numeric suffix 3) .link files for each interface that is a member of the bond; files will be named with the bond device’s name and a numeric suffix 
- On Debian and Debian-derivative systems the .link files are copied into the initramfs by the `update-initramfs` tool, which means that the system must be rebooted for changes in those files to take effect. In this situation the role will set a fact named ‘systemd_networkd_link_reboot_required’ and the system should be rebooted before any additional configuration of the bonded network links is attempted. 
- Detailed descriptions of parameters and their behavior can be found in ‘man systemd.netdev’ and ‘man systemd.link’. 
- Sets fact named ‘systemd_networkd_bond_changed’ to either true or false to indicate whether any changes were made. 
Parameters
| Parameter | Comments | 
|---|---|
| Attributes of the bond devices to be managed. | |
| Attributes of the bond device. | |
| Delay between the minimum number of members reaching ‘link down’ and ‘link down’ being reported for the bond. | |
| LACP data unit transmission rate (only used in 802.3ad mode). Choices: 
 | |
| Frequency of MII link monitoring. | |
| Minimum number of active members for the device to report that it ‘has carrier’. | |
| Bonding mode. Choices: 
 | |
| Policy for member selection during transmit. Choices: 
 | |
| Delay between the minimum number of members reaching ‘link up’ and ‘link up’ being reported for the bond. | |
| Matching attributes of the bond network device. | |
| System-specific attributes to be matched. | |
| Match system architecture. | |
| Match service credential. | |
| Match system firmware. | |
| Match hostname or machine ID. | |
| Match kernel command line option presence. | |
| Match kernel version expression. | |
| Match virtualization type. | |
| Matching attributes of the bond’s member interfaces. | |
| Device-specific attributes to be matched. | |
| Match udev ID_NET_DRIVER. | |
| Match netlink IFLA_INFO_KIND. | |
| Match current MAC address. | |
| Match udev INTERFACE. | |
| Match udev ID_PATH. | |
| Match permanent MAC address. | |
| Match udev property. | |
| Match udev DEVTYPE. | |
| System-specific attributes to be matched. | |
| Match system architecture. | |
| Match service credential. | |
| Match system firmware. | |
| Match hostname or machine ID. | |
| Match kernel command line option presence. | |
| Match kernel version expression. | |
| Match virtualization type. | |
| Name of the bond device. | |
| Attributes of the bond network device. | |
| MAC address to use on the device. | |
| The MTU for the device. | |
| Suppress the reloading of systemd-networkd if changes are made. Choices: 
 | |
| Root path of filesystem containing systemd-networkd configuration files. Default:  | 
