-
Notifications
You must be signed in to change notification settings - Fork 0
/
hostconfig.yml
38 lines (38 loc) · 1.01 KB
/
hostconfig.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
- name: Configure linux host
hosts: all
tasks:
- name: create directories
file:
path: "{{ item }}"
state: directory
mode: 0775
loop:
- /etc/ssl/public/
- name: Disable rp_filter
sysctl:
name: net.ipv4.conf.all.rp_filter
value: '0'
sysctl_set: yes
state: present
reload: yes
- name: Disable default rp_filter
sysctl:
name: net.ipv4.conf.default.rp_filter
value: '0'
sysctl_set: yes
state: present
reload: yes
- name: enable ipv4 forwarding
sysctl:
name: net.ipv4.conf.all.forwarding
value: '1'
sysctl_set: yes
state: present
reload: yes
- name: enable ipv6 forwarding
sysctl:
name: net.ipv6.conf.all.forwarding
value: '1'
sysctl_set: yes
state: present
reload: yes