diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2024-11-03 17:13:56 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2024-11-03 17:13:56 +0100 |
commit | 8ceb4bbe219230a7e8297f7bd78c141202454dba (patch) | |
tree | c7b8c5b8f64c061d86cb2a41711d7afe989f2965 /ansible/plays | |
parent | 9fc7d5ed1a8a31bd0ddcba0568c8acc280ee5021 (diff) | |
download | infra-8ceb4bbe219230a7e8297f7bd78c141202454dba.tar.gz infra-8ceb4bbe219230a7e8297f7bd78c141202454dba.tar.bz2 infra-8ceb4bbe219230a7e8297f7bd78c141202454dba.tar.xz infra-8ceb4bbe219230a7e8297f7bd78c141202454dba.zip |
unifi
Diffstat (limited to 'ansible/plays')
-rw-r--r-- | ansible/plays/host-unifi.yml | 18 | ||||
-rw-r--r-- | ansible/plays/templates/unifi/systemd-networkd/enp1s0.network | 8 |
2 files changed, 26 insertions, 0 deletions
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 }} |