common: sysctl reload skips keys a container does not have

This commit is contained in:
2026-11-07 19:31:02 +00:00
parent cc9cc6d34f
commit 37fc48275d
+2 -2
View File
@@ -1,8 +1,8 @@
# Only the files of this role that exist: in a container the distribution files hold keys that # Only the files of this role that exist: in a container the distribution files hold keys that
# are not writable there, and sysctl --system fails on them. # are not writable there, and sysctl --system fails on them; -e skips keys a container lacks.
- name: reload_sysctl - name: reload_sysctl
shell: >- shell: >-
cd /etc/sysctl.d && sysctl -p $(ls cd /etc/sysctl.d && sysctl -e -p $(ls
ip-forwarding.conf ip-forwarding.conf
ipv6-slaac-address-generation.conf ipv6-slaac-address-generation.conf
ipv6-slaac-override.conf ipv6-slaac-override.conf