aboutsummaryrefslogtreecommitdiff
path: root/roles/host/handlers/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/host/handlers/main.yml')
-rw-r--r--roles/host/handlers/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/host/handlers/main.yml b/roles/host/handlers/main.yml
new file mode 100644
index 0000000..501bfeb
--- /dev/null
+++ b/roles/host/handlers/main.yml
@@ -0,0 +1,11 @@
+- name: Restart sshd
+ ansible.builtin.service:
+ name: "sshd"
+ state: "restarted"
+
+- name: Reload systemd daemon
+ ansible.builtin.systemd_service:
+ daemon_reload: true
+
+- name: Reload sysctl
+ ansible.builtin.shell: "sysctl -p /etc/sysctl.d/50-UnprivilegedPort.conf"