mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
feat(ssh): support runit for service reloading
This commit is contained in:
parent
d0d73b9327
commit
35bc21a0c0
1 changed files with 10 additions and 1 deletions
|
@ -1,5 +1,14 @@
|
|||
---
|
||||
- name: "reload sshd"
|
||||
- name: "Reload sshd using systemd"
|
||||
ansible.builtin.systemd:
|
||||
name: "sshd"
|
||||
state: "reloaded"
|
||||
when: "ansible_service_mgr == 'systemd'"
|
||||
listen: "reload sshd"
|
||||
|
||||
- name: "Reload sshd using runit"
|
||||
community.general.runit:
|
||||
name: "sshd"
|
||||
state: "reloaded"
|
||||
when: "ansible_service_mgr == 'runit'"
|
||||
listen: "reload sshd"
|
||||
|
|
Loading…
Reference in a new issue