ansible-role-openbsd-carp/tasks/main.yml

22 lines
454 B
YAML
Raw Permalink Normal View History

2020-07-19 21:07:18 +02:00
---
- name: Enable CARP
sysctl:
name: net.inet.carp.allow
value: '1'
- name: Allow CARP preempt
sysctl:
name: net.inet.carp.preempt
2020-07-20 17:09:24 +02:00
value: {{ openbsd_carp_preempt | int }}
2020-07-20 16:05:30 +02:00
- name: Configure carp{{ carp.num }}
template:
src: hostname.carp.j2
dest: /etc/hostname.carp{{ carp.num }}
notify: start carp{{ carp.num }}
loop: "{{ openbsd_carp | flatten(level=1) }}"
loop_control:
loop_var: carp
- meta: flush_handlers