From 8ceb4bbe219230a7e8297f7bd78c141202454dba Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 3 Nov 2024 17:13:56 +0100 Subject: unifi --- ansible/plays/host-unifi.yml | 18 ++++++++++++++++++ .../templates/unifi/systemd-networkd/enp1s0.network | 8 ++++++++ 2 files changed, 26 insertions(+) create mode 100644 ansible/plays/host-unifi.yml create mode 100644 ansible/plays/templates/unifi/systemd-networkd/enp1s0.network (limited to 'ansible/plays') diff --git a/ansible/plays/host-unifi.yml b/ansible/plays/host-unifi.yml new file mode 100644 index 0000000..41fb292 --- /dev/null +++ b/ansible/plays/host-unifi.yml @@ -0,0 +1,18 @@ +- hosts: + - unifi + tasks: + - become: yes + apt: + name: + - etckeeper + + - import_role: + name: timezone + + - import_role: + name: systemd-networkd + + - become: yes + apt: + name: + - docker.io diff --git a/ansible/plays/templates/unifi/systemd-networkd/enp1s0.network b/ansible/plays/templates/unifi/systemd-networkd/enp1s0.network new file mode 100644 index 0000000..251bf45 --- /dev/null +++ b/ansible/plays/templates/unifi/systemd-networkd/enp1s0.network @@ -0,0 +1,8 @@ +[Match] +Name=enp1s0 + +[Network] +DHCP=ipv4 + +[IPv6AcceptRA] +Token=static:{{ ipam6.networks.lhn2_dn42.hosts.unifi }} -- cgit v1.2.3