infra/roles/tunnel/handlers/main.yml

9 lines
164 B
YAML

---
- name: restart autossh
service:
name: autossh-{{ item.hostname }}
state: restarted
with_items: "{{ ssh_tunnels }}"
when: not ansible_check_mode