Role network-routing: rename 'sysctl_settings_routing_gateway' to 'sysctl_settings_routing_forwarding'; enable ip forwarding also for monitoring hosts

This commit is contained in:
Tobias Hachmer 2019-03-22 21:52:08 +01:00
parent 0c6cec55e3
commit b995bbffdf
No known key found for this signature in database
GPG key ID: E112788464CA5C60
2 changed files with 4 additions and 4 deletions

View file

@ -60,10 +60,10 @@
state: present
loop: "{{ sysctl_settings_routing_basic }}"
- name: set gateway sysctl settings for routing
when: server_type == "gateway" or server_type == "mesh-service"
- name: set sysctl settings for ip forwarding
when: server_type == "gateway" or server_type == "mesh-service" or server_type == "monitoring"
sysctl:
name: "{{ item.name }}"
value: "{{ item.value }}"
state: present
loop: "{{ sysctl_settings_routing_gateway }}"
loop: "{{ sysctl_settings_routing_forwarding }}"

View file

@ -9,7 +9,7 @@ sysctl_settings_routing_basic:
- name: net.ipv6.conf.default.accept_ra
value: 0
sysctl_settings_routing_gateway:
sysctl_settings_routing_forwarding:
- name: net.ipv4.ip_forward
value: 1
- name: net.ipv6.conf.all.forwarding