ham-hotspot/ansible/roles/tuning/tasks/main.yml
2025-04-26 13:02:20 -05:00

24 lines
618 B
YAML

---
- name: Deploy AX.25 tuning systemd templates
template:
src: ../templates/ax-tune@.service.j2
dest: /etc/systemd/system/ax-tune@.service
mode: '0644'
- name: Prune old AX.25 tuning services
import_tasks: prune_old_ax_tune.yml
- name: Enable and start AX.25 tuning services
loop: "{{ radios }}"
loop_control:
loop_var: radio
vars:
ax_iface: "{{ 'ax' + loop.index0|string }}"
radio_port: "{{ radio.port_name }}"
block:
- name: Enable tuning service for {{ ax_iface }}
systemd:
name: "ax-tune@{{ ax_iface }}.service"
enabled: yes
state: started