diff --git a/.gitea/workflows/ansible-runner.yaml b/.gitea/workflows/ansible-runner.yaml index 0e190e0..7fb872e 100644 --- a/.gitea/workflows/ansible-runner.yaml +++ b/.gitea/workflows/ansible-runner.yaml @@ -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 diff --git a/playbooks/deploy_grafana.yml.ansible b/playbooks/deploy_grafana.yml.ansible index db833e2..bd54441 100644 --- a/playbooks/deploy_grafana.yml.ansible +++ b/playbooks/deploy_grafana.yml.ansible @@ -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: