aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2021-01-18 19:22:57 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2021-01-18 19:22:57 +0100
commitc28fe3ed473a195b5d9067c8c65676b409c19ce0 (patch)
treec27c0b3b97bf5517e7016ec81549be131c493cbc /roles
parent517597c0f34051711f20d0d4e0cf8a3bbdbfab0d (diff)
downloadlabitat-ansible-c28fe3ed473a195b5d9067c8c65676b409c19ce0.tar.gz
labitat-ansible-c28fe3ed473a195b5d9067c8c65676b409c19ce0.tar.xz
labitat-ansible-c28fe3ed473a195b5d9067c8c65676b409c19ce0.zip
fedora: handlers: add restart sshd handler
Diffstat (limited to 'roles')
-rw-r--r--roles/fedora/handlers/main.yml6
-rw-r--r--roles/space_server/handlers/main.yml6
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