aboutsummaryrefslogtreecommitdiff
path: root/roles/host/tasks/unprivileged-port.yml
diff options
context:
space:
mode:
authorspmfox <spmfox@foxwd.com>2025-04-23 22:22:39 -0400
committerspmfox <spmfox@foxwd.com>2025-04-23 22:22:39 -0400
commit87a216322a8a858b35ffb1a426ebbadc1395c0df (patch)
treebe354c436fb5f30422b2a3f43c5cf852da2735e6 /roles/host/tasks/unprivileged-port.yml
parent33af7561882425e6e1a2d3ed56e46f2c5a10033f (diff)
Added handler logic in host role, added ssh hardening
Diffstat (limited to 'roles/host/tasks/unprivileged-port.yml')
-rw-r--r--roles/host/tasks/unprivileged-port.yml7
1 files changed, 2 insertions, 5 deletions
diff --git a/roles/host/tasks/unprivileged-port.yml b/roles/host/tasks/unprivileged-port.yml
index c724e49..69a21f4 100644
--- a/roles/host/tasks/unprivileged-port.yml
+++ b/roles/host/tasks/unprivileged-port.yml
@@ -4,8 +4,5 @@
regexp: "^net.ipv4.ip_unprivileged_port_start="
line: "net.ipv4.ip_unprivileged_port_start={{ host_unprivileged_port_start }}"
create: true
- register: sysctl
-
-- name: Reload sysctl
- ansible.builtin.shell: "sysctl -p /etc/sysctl.d/50-UnprivilegedPort.conf"
- when: sysctl.changed
+ notify:
+ - Reload sysctl