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
This commit is contained in:
abelgana 2017-10-26 13:06:21 -04:00 committed by GitHub
parent ba0a03a8ba
commit d9160f19c0

View file

@ -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