23 lines
454 B
YAML
23 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: '1'
|
|
when: openbsd_carp_preempt
|
|
|
|
- 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
|