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

36 lines
755 B
YAML

---
- name: Converge
hosts: all
roles:
- ansible-role-keepalived
vars:
keepalived_vrrp_scripts:
hello:
script: /bin/true
fall: 3
interval: 10
rise: 5
keepalived_track_files:
master:
file: /tmp/master
weight: 42
keepalived_vrrp_instances:
- name: test
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
pre_tasks:
- name: update apt cache
ansible.builtin.apt:
update_cache: true