Files
tthandClaude Opus 5.5 0a4cfafc78
ci / test (push) Successful in 2m39s
tth.meshcore: MeshCore repeaters as code, over RF
Ansible collection that converges MeshCore repeaters through a companion
radio (TCP, USB serial or BLE): admin ACL, CLI prefs, region tree,
firmware facts, companion remote-CLI ACL, and the meshcore-tth extras
(BLE on/off and own BLE PIN, channel-hash filter, message age, advert
fairness). Every change is read, diffed, sent and read back; --check
only reads. ansible-test sanity, unit tests and a galaxy build in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 02:23:24 +01:00

49 lines
1.6 KiB
YAML

# ansible-playbook -i inventory.yml repeaters.yml --check --diff # what would change
# ansible-playbook -i inventory.yml repeaters.yml --diff # apply
- name: MeshCore repeaters
hosts: meshcore_repeaters
gather_facts: false
serial: 1 # RF: one repeater at a time
vars:
meshcore_admin_password: "{{ vault_meshcore_admin_password }}"
tasks:
- name: Admin ACL
tth.meshcore.meshcore_acl:
transport: "{{ mc_transport }}"
target: "{{ mc_target }}"
password: "{{ meshcore_admin_password }}"
admins: "{{ mc_admins }}"
delegate_to: "{{ mc_via }}"
when: mc_admins is defined
tags: [acl]
- name: Prefs
tth.meshcore.meshcore_prefs:
transport: "{{ mc_transport }}"
target: "{{ mc_target }}"
password: "{{ meshcore_admin_password }}"
prefs: "{{ mc_prefs }}"
delegate_to: "{{ mc_via }}"
when: mc_prefs is defined
tags: [prefs]
- name: Regions
tth.meshcore.meshcore_region:
transport: "{{ mc_transport }}"
target: "{{ mc_target }}"
password: "{{ meshcore_admin_password }}"
regions: "{{ mc_regions }}"
home: "{{ mc_region_home | default(omit) }}"
default_scope: "{{ mc_default_scope | default(omit) }}"
delegate_to: "{{ mc_via }}"
when: mc_regions is defined
tags: [regions]
- name: Firmware version
tth.meshcore.meshcore_fw_facts:
transport: "{{ mc_transport }}"
target: "{{ mc_target }}"
password: "{{ meshcore_admin_password }}"
delegate_to: "{{ mc_via }}"
tags: [ver]