diff --git a/ansible/playbook.yml b/ansible/playbook.yml index 259578f..1e99422 100644 --- a/ansible/playbook.yml +++ b/ansible/playbook.yml @@ -158,12 +158,22 @@ enabled: yes state: started + - name: Assign static IP to ax0 + shell: | + ip addr add {{ radio.ip_address }}/24 dev ax0 || true + ip link set ax0 up + - name: Enable and start hostapd systemd: name: hostapd.service enabled: yes state: started + - name: Assign static IP to wlan0 + shell: | + ip addr add {{ network.lan_gateway }}/24 dev wlan0 || true + ip link set wlan0 up + - name: Enable and start dnsmasq systemd: name: dnsmasq.service diff --git a/config/desired_state.yml b/config/desired_state.yml index bf62858..eb4f322 100644 --- a/config/desired_state.yml +++ b/config/desired_state.yml @@ -16,3 +16,4 @@ radio: mycall: KI5QKX-11 port_name: radio0 ip_address: 44.31.1.1 + ptt: CM108 diff --git a/templates/direwolf.conf.j2 b/templates/direwolf.conf.j2 index 24ff132..fae37f5 100644 --- a/templates/direwolf.conf.j2 +++ b/templates/direwolf.conf.j2 @@ -16,6 +16,7 @@ TXTAIL 10 DWAIT 0 SLOTTIME 100 PERSIST 63 +PTT {{ radio.ptt }} # Log settings LOGDIR /var/log/direwolf