netcup-setup/ansible/roles/rootless_host/tasks/rootless_ports.yml
2025-12-27 17:46:43 +01:00

16 lines
406 B
YAML

---
- name: Set sysctl to allow normal users to bind to ports starting from 80
sysctl:
name: net.ipv4.ip_unprivileged_port_start
value: 80
state: present
reload: yes
- name: Verify the sysctl setting
command: sysctl net.ipv4.ip_unprivileged_port_start
register: sysctl_result
changed_when: false
- debug:
msg: "net.ipv4.ip_unprivileged_port_start: {{ sysctl_result.stdout }}"