22 lines
454 B
YAML
22 lines
454 B
YAML
---
|
|
- name: Enable CARP
|
|
sysctl:
|
|
name: net.inet.carp.allow
|
|
value: '1'
|
|
|
|
- name: Allow CARP preempt
|
|
sysctl:
|
|
name: net.inet.carp.preempt
|
|
value: {{ openbsd_carp_preempt | int }}
|
|
|
|
- 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
|