fix inventory name
Some checks failed
🏃‍♂️Run Ansible / install_ansible (push) Failing after 1m59s

This commit is contained in:
master of disaster
2025-12-18 00:57:25 +01:00
parent 55a9c3b4a3
commit c31f27171a
2 changed files with 6 additions and 5 deletions

View File

@@ -61,7 +61,8 @@ jobs:
- name: 🔎Check Ansible roles exists
run: |
ansible-galaxy list
- name: 🔎Check inventory
run: ansible-inventory
- name: 🔎Check Ansible Playbook Syntax
run: |
# ansible-playbook --syntax-check playbooks/update_debian.yml.ansible

View File

@@ -1,5 +1,5 @@
- hosts:
- grafana
- grafana_servers
- postgresql
gather_facts: true
become: true
@@ -10,12 +10,12 @@
- name: Create List with right interface
ansible.builtin.set_fact:
node_ips_eth0: "{{ groups['gitea'] | map('extract', hostvars, ['ansible_facts', 'eth0', 'ipv4', 'address']) }}"
node_ips_eth0: "{{ groups['grafana'] | map('extract', hostvars, ['ansible_facts', 'eth0', 'ipv4', 'address']) }}"
- name: Fügen Sie die Gitea pg_hba Einträge zur Patroni-Liste hinzu
ansible.builtin.set_fact:
# Fügt die neuen Zeilen zur Liste hinzu
postgresql_additional_pg_hba: "{{ postgresql_additional_pg_hba | default([]) + ['host ' + gitea_db_name + ' ' + gitea_db_user + ' ' + item + '/32 scram-sha-256'] }}"
postgresql_additional_pg_hba: "{{ postgresql_additional_pg_hba | default([]) + ['host ' + grafana_db_name + ' ' + grafana_db_user + ' ' + item + '/32 scram-sha-256'] }}"
loop: "{{ node_ips_eth0 }}"
run_once: true
@@ -29,7 +29,7 @@
postgresql_App_db_name: "{{ grafana_db_name }}"
- hosts:
- grafana
- grafana_servers
gather_facts: true
become: true
roles: