/
/
/
Ansible role that deploys my edge device with connectivity containers. Currently it deploys a thread border router via the zbt-1 dongle by Home Assistant, a zigbee2MQTT interface using the Sonoff zigbee dongle and a DSMR reader with a generic P1 to USB converter.
1---
2- name: Set timezone
3 ansible.builtin.timezone:
4 name: "{{ ha_edge_timezone }}"
5
6- name: Ensure common packages
7 ansible.builtin.apt:
8 name: "{{ packages_common }}"
9 state: present
10 update_cache: true
11
12# Enable IPv6 forwarding (needed for Thread BR + border routing)
13- name: Enable IPv6 forwarding
14 ansible.builtin.copy:
15 dest: /etc/sysctl.d/99-ha-edge-ipv6.conf
16 content: |
17 net.ipv6.conf.all.disable_ipv6 = 0
18 net.ipv6.conf.default.disable_ipv6 = 0
19 net.ipv6.conf.all.forwarding = 1
20 notify: Reload sysctl
21
22- name: Apply sysctl now
23 ansible.builtin.command: sysctl --system
24 changed_when: false
25
26- name: Ensure user is in dialout group
27 ansible.builtin.user:
28 name: "{{ ha_edge_user }}"
29 groups: dialout
30 append: yes
31
32