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

33 lines
675 B
YAML
Raw 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:
- name: hello
script: /bin/true
fall: 3
interval: 10
rise: 5
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
2021-08-18 16:42:28 +00:00
pre_tasks:
- name: update apt cache
ansible.builtin.apt:
update_cache: true