From c28fe3ed473a195b5d9067c8c65676b409c19ce0 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Mon, 18 Jan 2021 19:22:57 +0100 Subject: fedora: handlers: add restart sshd handler --- roles/fedora/handlers/main.yml | 6 ++++++ roles/space_server/handlers/main.yml | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/fedora/handlers/main.yml b/roles/fedora/handlers/main.yml index 929bf15..5e02bd7 100644 --- a/roles/fedora/handlers/main.yml +++ b/roles/fedora/handlers/main.yml @@ -17,4 +17,10 @@ state: restarted when: not chroot +- name: restart sshd + systemd: + name: sshd.service + state: restarted + when: not chroot + # vim: set ts=2 sw=2 et: diff --git a/roles/space_server/handlers/main.yml b/roles/space_server/handlers/main.yml index 0ae6ef4..adf4ee9 100644 --- a/roles/space_server/handlers/main.yml +++ b/roles/space_server/handlers/main.yml @@ -5,12 +5,6 @@ state: reloaded when: not chroot -- name: restart sshd - systemd: - name: sshd.service - state: restarted - when: not chroot - - name: restart bird systemd: name: bird.service -- cgit v1.2.1