45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
---
|
|
- name: Deploy axports configuration
|
|
ansible.builtin.template:
|
|
src: axports.j2
|
|
dest: /etc/ax25/axports
|
|
mode: "0644"
|
|
|
|
- name: Enable and start Direwolf instance
|
|
ansible.builtin.systemd:
|
|
name: direwolf@{{ radio.port_name }}.service
|
|
enabled: true
|
|
state: started
|
|
loop: "{{ radios }}"
|
|
loop_control:
|
|
loop_var: radio
|
|
|
|
- name: Enable and start KISS TNC instance
|
|
ansible.builtin.systemd:
|
|
name: kisstnc@{{ radio.port_name }}.service
|
|
enabled: true
|
|
state: started
|
|
loop: "{{ radios }}"
|
|
loop_control:
|
|
loop_var: radio
|
|
|
|
- name: Enable and start AX.25 daemon
|
|
ansible.builtin.systemd:
|
|
name: ax25d.service
|
|
enabled: true
|
|
state: started
|
|
|
|
# Deploy AX.25 systemd-networkd configs
|
|
- name: Deploy AX.25 systemd-networkd configs
|
|
loop: "{{ radios }}"
|
|
loop_control:
|
|
loop_var: radio
|
|
vars:
|
|
ax_iface: "{{ 'ax' + loop.index0 | string }}"
|
|
ansible.builtin.template:
|
|
src: ax.network.j2
|
|
dest: "/etc/systemd/network/{{ ax_iface }}.network"
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|