File: upstream_node.yml

package info (click to toggle)
check-pgbackrest 2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,396 kB
  • sloc: perl: 972; sh: 488; python: 145; makefile: 33
file content (14 lines) | stat: -rw-r--r-- 527 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: Get upstream node info
  ansible.builtin.set_fact:
    upstream_inventory_hostname: "{{ node.inventory_hostname }}"
  when:
    - hostvars[inventory_hostname].upstream_node_private_ip is defined
    - node.private_ip == hostvars[inventory_hostname].upstream_node_private_ip
  loop: "{{ lookup('pg_sr_cluster_nodes', wantlist=True) }}"
  loop_control:
    loop_var: node

- name: Update upstream node config
  ansible.builtin.import_tasks: upstream_node_update.yml
  delegate_to: "{{ upstream_inventory_hostname }}"