diff options
Diffstat (limited to 'puomi-installer-playbook.yml')
-rw-r--r-- | puomi-installer-playbook.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/puomi-installer-playbook.yml b/puomi-installer-playbook.yml new file mode 100644 index 0000000..0c0863c --- /dev/null +++ b/puomi-installer-playbook.yml @@ -0,0 +1,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 |