From 37fc48275d43a1450d3b115cc7a6e4caa08ad419 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Sat, 7 Nov 2026 19:31:02 +0000 Subject: [PATCH] common: sysctl reload skips keys a container does not have --- common/handlers/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/handlers/main.yml b/common/handlers/main.yml index 10fd150..db02a89 100644 --- a/common/handlers/main.yml +++ b/common/handlers/main.yml @@ -1,8 +1,8 @@ # 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 shell: >- - cd /etc/sysctl.d && sysctl -p $(ls + cd /etc/sysctl.d && sysctl -e -p $(ls ip-forwarding.conf ipv6-slaac-address-generation.conf ipv6-slaac-override.conf