add ip ip_unprivileged_port_start sysctl param
This commit is contained in:
parent
6c2ddb35a6
commit
30229ab7e5
@ -46,3 +46,4 @@ system_ssh_custom_host: []
|
||||
|
||||
system_wol_enable: False
|
||||
system_wol_mac: "{{ ansible_default_ipv4.macaddress }}"
|
||||
system_ip_unprivileged_port_start: 1024
|
||||
|
@ -1,10 +1,20 @@
|
||||
---
|
||||
- name: Disable IPV6
|
||||
ansible.builtin.template:
|
||||
src: 40-ipv6.j2
|
||||
src: sysctl.d/40-ipv6.j2
|
||||
dest: /etc/sysctl.d/40-ipv6.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
mode: "0644"
|
||||
notify: Restart_sysctl
|
||||
become: true
|
||||
---
|
||||
- name: set ip_unprivileged_port_start
|
||||
ansible.builtin.template:
|
||||
src: sysctl.d/40-ip_unprivileged_port_start.j2
|
||||
dest: /etc/sysctl.d/40-ip_unprivileged_port_start.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
notify: Restart_sysctl
|
||||
become: true
|
||||
|
1
templates/sysctl.d/40-ip_unprivileged_port_start.j2
Normal file
1
templates/sysctl.d/40-ip_unprivileged_port_start.j2
Normal file
@ -0,0 +1 @@
|
||||
net.ipv4.ip_unprivileged_port_start = {{ system_ip_unprivileged_port_start }}
|
Loading…
Reference in New Issue
Block a user