mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 19:58:07 +03:00
use ansible sysctl module for config ip forwarding
This commit is contained in:
@@ -140,14 +140,10 @@
|
|||||||
tags: bootstrap-os
|
tags: bootstrap-os
|
||||||
|
|
||||||
- name: Enable ip forwarding
|
- name: Enable ip forwarding
|
||||||
lineinfile:
|
sysctl:
|
||||||
dest: /etc/sysctl.d/99-sysctl.conf
|
name: net.ipv4.ip_forward
|
||||||
regexp: '^net.ipv4.ip_forward='
|
value: 1
|
||||||
line: 'net.ipv4.ip_forward=1'
|
|
||||||
state: present
|
state: present
|
||||||
create: yes
|
|
||||||
backup: yes
|
|
||||||
validate: 'sysctl -f %s'
|
|
||||||
tags: bootstrap-os
|
tags: bootstrap-os
|
||||||
|
|
||||||
- name: Write openstack cloud-config
|
- name: Write openstack cloud-config
|
||||||
|
|||||||
Reference in New Issue
Block a user