This commit is contained in:
@@ -61,7 +61,8 @@ jobs:
|
|||||||
- name: 🔎Check Ansible roles exists
|
- name: 🔎Check Ansible roles exists
|
||||||
run: |
|
run: |
|
||||||
ansible-galaxy list
|
ansible-galaxy list
|
||||||
|
- name: 🔎Check inventory
|
||||||
|
run: ansible-inventory
|
||||||
- name: 🔎Check Ansible Playbook Syntax
|
- name: 🔎Check Ansible Playbook Syntax
|
||||||
run: |
|
run: |
|
||||||
# ansible-playbook --syntax-check playbooks/update_debian.yml.ansible
|
# ansible-playbook --syntax-check playbooks/update_debian.yml.ansible
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
- hosts:
|
- hosts:
|
||||||
- grafana
|
- grafana_servers
|
||||||
- postgresql
|
- postgresql
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
@@ -10,12 +10,12 @@
|
|||||||
|
|
||||||
- name: Create List with right interface
|
- name: Create List with right interface
|
||||||
ansible.builtin.set_fact:
|
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
|
- name: Fügen Sie die Gitea pg_hba Einträge zur Patroni-Liste hinzu
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
# Fügt die neuen Zeilen zur Liste hinzu
|
# 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 }}"
|
loop: "{{ node_ips_eth0 }}"
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
postgresql_App_db_name: "{{ grafana_db_name }}"
|
postgresql_App_db_name: "{{ grafana_db_name }}"
|
||||||
|
|
||||||
- hosts:
|
- hosts:
|
||||||
- grafana
|
- grafana_servers
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
|
|||||||
Reference in New Issue
Block a user