mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2024-06-24 10:14:48 +02:00
18 lines
438 B
YAML
18 lines
438 B
YAML
- hosts: raspberry_pis
|
|
become: true
|
|
tasks:
|
|
- name: Configure eth0 using Netplan
|
|
copy:
|
|
dest: "/etc/netplan/01-netcfg.yaml"
|
|
content: |
|
|
network:
|
|
version: 2
|
|
ethernets:
|
|
eth0:
|
|
dhcp4: true
|
|
owner: "root"
|
|
group: "root"
|
|
mode: "0644"
|
|
- name: Apply netplan configuration
|
|
ansible.builtin.command:
|
|
cmd: netplan apply |