Browse Source

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
pull/1884/head
abelgana 7 years ago
committed by GitHub
parent
commit
d9160f19c0
1 changed files with 1 additions and 0 deletions
  1. 1
      roles/kubernetes/preinstall/tasks/main.yml

1
roles/kubernetes/preinstall/tasks/main.yml

@ -236,6 +236,7 @@
name: net.ipv4.ip_forward name: net.ipv4.ip_forward
value: 1 value: 1
state: present state: present
reload: yes
tags: tags:
- bootstrap-os - bootstrap-os

Loading…
Cancel
Save