Set net.ipv4.ip_forward=1 on all systems, not only on GCE

pull/747/head
Alexander Block 2016-12-14 15:08:13 +01:00
parent 8e809aed01
commit 81317505eb
1 changed files with 2 additions and 3 deletions

View File

@ -81,7 +81,7 @@
when: cloud_provider is defined and cloud_provider == 'azure'
tags: [cloud-provider, azure, facts]
- name: Fix ipv4 forward rule in GCE security policy
- name: Enable ip forwarding
lineinfile:
dest: /etc/sysctl.d/99-sysctl.conf
regexp: '^net.ipv4.ip_forward='
@ -90,8 +90,7 @@
create: yes
backup: yes
validate: 'sysctl -f %s'
when: cloud_provider is defined and cloud_provider == 'gce'
tags: [cloud-provider, gce, bootstrap-os]
tags: bootstrap-os
- name: Create cni directories
file: