mrlesmithjr.netplan
Table of Contents generated with DocToc
ansible-netplan
This is an Ansible role for managing Netplan.
Requirements
You should likely run this role with become: true
.
Role Variables
Available in defaults/main.yml.
Dependencies
None listed.
Example Playbook
Here is a simple example of a playbook that sets up a single network interface. For a complete list of options for this role, check defaults/main.yml.
---
- hosts: ...your hosts...
any_errors_fatal: true
roles:
- role: mrlesmithjr.netplan
become: yes
# This role does nothing unless netplan_enabled is set to true.
netplan_enabled: true
# Point this to an existing netplan config file on your system,
# or to a non-existent file that netplan recognizes.
# The default is /etc/netplan/config.yaml.
netplan_config_file: /etc/netplan/my-awesome-netplan.yaml
# Ubuntu 18.04 defaults to using networkd.
netplan_renderer: networkd
# Basic network configuration to add one network interface.
# The config below will be written to the file specified above
# in `netplan_config_file`.
netplan_configuration:
network:
version: 2
ethernets:
enp28s0f7:
addresses:
- 10.11.12.99/24
Using vaulted variables
When using vaulted variables, define them outside the netplan_configuration
variable to ensure they are evaluated.
netplan_configuration:
network:
version: 2
tunnels:
wg_test:
mode: wireguard
key: "{{ my_wireguard_private_key }}"
...
my_wireguard_private_key: !vault |
31366530666465373834386563636465636135323562303866363333333865376330303130363162
...
License
MIT License.
Author Information
Larry Smith Jr.
Informazioni sul progetto
An [Ansible](https://www.ansible.com) role to manage [Netplan](https://netplan.io)
Installa
ansible-galaxy install mrlesmithjr.netplan
Licenza
mit
Download
1.1M
Proprietario
Doing my thang with #automation #DevOps and cloudy things! Providing hopefully valuable content for others to consume easily and also learn from.