From d9160f19c078903162c767f071392ccac0889999 Mon Sep 17 00:00:00 2001 From: abelgana <32614067+abelgana@users.noreply.github.com> Date: Thu, 26 Oct 2017 13:06:21 -0400 Subject: [PATCH] Sysctl reload if needed after IP forward enabling Add reload yes to reload sysctl if the value of net.ipv4.ip_forward changes. - name: Enable ip forwarding sysctl: sysctl_file: "{{sysctl_file_path}}" name: net.ipv4.ip_forward value: 1 state: present reload: yes tags: - bootstrap-os --- roles/kubernetes/preinstall/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/kubernetes/preinstall/tasks/main.yml b/roles/kubernetes/preinstall/tasks/main.yml index 1cbf55b78..cd0f3b2bc 100644 --- a/roles/kubernetes/preinstall/tasks/main.yml +++ b/roles/kubernetes/preinstall/tasks/main.yml @@ -236,6 +236,7 @@ name: net.ipv4.ip_forward value: 1 state: present + reload: yes tags: - bootstrap-os