This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user