blob: 0c0863c0884f2476f18c3ba8c105a2ecb2bb098d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Ansible playbook for installing a router.
- hosts: image
pre_tasks:
- name: "configure networking for LAN adapter"
copy:
content: |
[Match]
Name=eth[^0]*
[Network]
Address=10.1.1.1/24
DHCPServer=true
IPMasquerade=true
ConfigureWithoutCarrier=true
[DHCPServer]
PoolOffset=100
PoolSize=50
EmitDNS=yes
dest: /etc/systemd/network/lan0.network
vars:
ansible_python_interpreter: /usr/bin/python3
sane_debian_system_version: 2
sane_debian_system_codename: bullseye
sane_debian_system_timezone: Europe/Helsinki
sane_debian_system_sources_lists:
- repo: |
deb http://deb.debian.org/debian bullseye contrib non-free
unix_users_version: 2
|