ansible-role-keepalived/molecule/default/converge.yml

37 lines
748 B
YAML
Raw Permalink Normal View History

2019-04-12 16:29:11 +00:00
---
2020-03-28 21:31:50 +00:00
- name: Converge
hosts: all
roles:
- ansible-role-keepalived
2019-04-12 16:29:11 +00:00
vars:
keepalived_vrrp_scripts:
hello:
2019-04-12 16:29:11 +00:00
script: /bin/true
fall: 3
interval: 10
rise: 5
2021-11-05 09:06:32 +00:00
keepalived_track_files:
master:
file: /tmp/master
weight: 42
2019-04-12 16:29:11 +00:00
keepalived_vrrp_instances:
test:
2019-04-12 16:29:11 +00:00
state: master
interface: eth0
virtual_router_id: 5
priority: 200
authentication:
type: pass
pass: 12345678
virtual_ipaddresses:
- 172.255.0.254/32 dev eth0
track_scripts:
- hello
notify:
master: /bin/true
2021-08-18 16:42:28 +00:00
pre_tasks:
- name: update apt cache
ansible.builtin.apt:
update_cache: true