diff --git a/playbooks/deploy_grafana.yml.ansible b/playbooks/deploy_grafana.yml.ansible index da36bb2..2055826 100644 --- a/playbooks/deploy_grafana.yml.ansible +++ b/playbooks/deploy_grafana.yml.ansible @@ -11,6 +11,7 @@ - name: Create List with right interface ansible.builtin.set_fact: node_ips_eth0: "{{ groups['grafana_servers'] | map('extract', hostvars, ['ansible_facts', 'eth0', 'ipv4', 'address']) }}" + when: inventory_hostname in groups['postgresql'] - name: Fügen Sie die Gitea pg_hba Einträge zur Patroni-Liste hinzu ansible.builtin.set_fact: @@ -27,6 +28,7 @@ postgresql_App_db_owner: "{{ grafana_db_user }}" postgresql_App_db_owner_password: "{{ grafana_db_password }}" postgresql_App_db_name: "{{ grafana_db_name }}" + when: inventory_hostname in groups['postgresql'] - hosts: - grafana_servers