# 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