43 lines
1010 B
YAML
43 lines
1010 B
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:
|
|
index_var: index
|
|
ansible.builtin.template:
|
|
src: ax.network.j2
|
|
dest: "/etc/systemd/network/{{ 'ax' + (index | string) }}.network"
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|