Browse Source

use ansible sysctl module for config ip forwarding

pull/1002/head
Mark Lee 7 years ago
parent
commit
34a71554ae
1 changed files with 3 additions and 7 deletions
  1. 10
      roles/kubernetes/preinstall/tasks/main.yml

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

@ -140,14 +140,10 @@
tags: bootstrap-os
- name: Enable ip forwarding
lineinfile:
dest: /etc/sysctl.d/99-sysctl.conf
regexp: '^net.ipv4.ip_forward='
line: 'net.ipv4.ip_forward=1'
sysctl:
name: net.ipv4.ip_forward
value: 1
state: present
create: yes
backup: yes
validate: 'sysctl -f %s'
tags: bootstrap-os
- name: Write openstack cloud-config

Loading…
Cancel
Save