kpfleming.systemd_networkd.global role – Manages systemd-networkd global configuration.

Note

This role is part of the kpfleming.systemd_networkd collection (version 25.2.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.global.

Entry point main – Manages systemd-networkd global configuration.

Synopsis

  • This role will create (or update) a dropin file named ansible.conf in /etc/systemd/networkd.conf.d

  • Sets fact named ‘systemd_networkd_global_changed’ to either true or false to indicate whether any changes were made.

Parameters

Parameter

Comments

settings

dictionary / required

Settings to be applied globally.

network

dictionary

Settings for the Network section.

ipv4_forwarding

boolean

Enable IPv4 forwarding.

Choices:

  • false

  • true

ipv6_forwarding

boolean

Enable IPv6 forwarding.

Choices:

  • false

  • true

suppress_reload

boolean

Suppress the reloading of systemd-networkd if changes are made.

Choices:

  • false ← (default)

  • true

systemd_root

string

Root path of filesystem containing systemd-networkd configuration files.

Default: ""