ansible/roles/autossh/handlers/main.yaml

21 lines
413 B
YAML
Raw Normal View History

2019-12-02 02:40:12 +00:00
---
- name: autossh daemon-reload
systemd:
daemon_reload: yes
- name: reload autossh
service:
name: "{{ autossh_service_name }}"
state: reloaded
- name: restart autossh
service:
name: "{{ autossh_service_name }}"
state: restarted
- name: reload autossh instances
service:
name: "autossh@{{ item.name }}.service"
state: restarted
loop: "{{ autossh_config | default([]) }}"