netplan

netplan

Source Code General Workflow Readme Workflow Galaxy Workflow License: Apache-2.0 Ansible Role

Ansible role to install and configure netplan networking.

Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.

Table of content


Requirements

  • Minimum Ansible version: 2.10

Default Variables

netplan_bonds

Definition of bond entries

Default value

netplan_bonds:

Example usage

netplan_bonds:
  bond0:
    mode: balance-rr
    interfaces:
      - enp6s0
      - enp6s1

netplan_bridges

Definition of bridge entries

Default value

netplan_bridges:

Example usage

netplan_bridges:
  virbr1:
    dhcp4: True
    dhcp4-overrides:
      use-routes: False
    interfaces:
      - vlan905

netplan_config_file

Path to config written to

Default value

netplan_config_file: /etc/netplan/01-netcfg.yaml

netplan_ethernets

Definition of ethernet entries

Default value

netplan_ethernets:

Example usage

netplan_ethernets: |
  enp6s0:
    dhcp4: True

netplan_renderer

Renderer used by netplan

Default value

netplan_renderer: networkd

netplan_rts

Define the available routing tables

Default value

netplan_rts: []

Example usage

netplan_rts:
  - id: 255
    name: local
  - id: 254
    name: main
  - id: 253
    name: default
  - id: 0
    name: unspec

netplan_version

Version of the netplan config format

Default value

netplan_version: '2'

netplan_vlans

Definition of vlan entries

Default value

netplan_vlans:

Example usage

netplan_vlans:
  vlan905:
    id: 905
    dhcp4: True
    link: enp6s0

Discovered Tags

netplan

Dependencies

  • None

License

Apache-2.0

Author

Thomas Boerger

About

Ansible role to install and configure netplan networking

Install
ansible-galaxy install rolehippie/netplan
GitHub repository
License
apache-2.0
Downloads
67
Owner
Ansible role collection of Webhippie