Debian Codegraph @

ansible_collections/dellemc/powerflex/roles/powerflex_gateway/tasks/install_keepalived.yml

raw symbols SCIP
1 ---
2 - name: Include vars
3 ansible.builtin.include_vars: "../vars/{{ ansible_distribution }}.yml"
4
5 - name: Install required packages
6 ansible.builtin.package:
7 name: "{{ item }}"
8 state: present
9 with_items: "{{ keepalived_packages }}"
10
11 - name: Set the priority of keepalived
12 ansible.builtin.set_fact:
13 powerflex_gateway_keepalived_priority: 100
14 run_once: true
15
16 - name: Set the priority of keepalived if not defined
17 ansible.builtin.set_fact:
18 powerflex_gateway_keepalived_priority: 101
19 when: powerflex_gateway_keepalived_priority is not defined
20
21 - name: Configure keepalived
22 ansible.builtin.template:
23 src: keepalived.conf.j2
24 dest: "{{ keepalived_config_file_location }}/keepalived.conf"
25 mode: '0600'
26 owner: root
27 group: root
28 notify: Restart keepalived