Add vrrpd role

This commit is contained in:
Victor LABORIE 2017-05-10 14:06:03 +02:00
parent 6a16dcf772
commit 85d90e05f1
1 changed files with 23 additions and 0 deletions

23
vrrpd/tasks/main.yml Normal file
View File

@ -0,0 +1,23 @@
---
- name: Install vrrpd packages
apt:
name: vrrpd=1.0-2.evolix
allow_unauthenticated: yes
state: present
tags:
- vrrpd
- name: Adjust sysctl config
sysctl:
name: "{{ item.name }}"
value: "{{ item.value }}"
sysctl_set: yes
state: present
with_items:
- { name: 'net.ipv4.conf.default.rp_filter', value: 0 }
- { name: 'net.ipv4.conf.eth0.rp_filter', value: 0 }
- { name: 'net.ipv4.conf.all.rp_filter', value: 0 }
- { name: 'net.ipv4.conf.all.arp_ignore', value: 1 }
- { name: 'net.ipv4.conf.all.arp_announce', value: 2 }
tags:
- vrrpd