postgresql: fix nested loop for Munin plugins
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jérémy Lecour 2022-06-08 15:39:34 +02:00 committed by Jérémy Lecour
parent e6ea44ff29
commit bcaacdf57f
2 changed files with 11 additions and 2 deletions

View file

@ -19,6 +19,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
### Fixed
* Enforce String notation for mode
* postgresql: fix nested loop for Munin plugins
### Removed

View file

@ -30,7 +30,15 @@
dest: '/etc/munin/plugins/{{item[0]}}{{item[1]}}'
loop: "{{ _plugins | product(_databases) | list }}"
vars:
_plugins: ['postgres_cache_', 'postgres_connections_', 'postgres_locks_', 'postgres_querylength_', 'postgres_scans_', 'postgres_size_', 'postgres_transactions_', 'postgres_tuples_']
_databases: postgresql_databases
_plugins:
- 'postgres_cache_'
- 'postgres_connections_'
- 'postgres_locks_'
- 'postgres_querylength_'
- 'postgres_scans_'
- 'postgres_size_'
- 'postgres_transactions_'
- 'postgres_tuples_'
_databases: "{{ postgresql_databases }}"
notify: restart munin-node
when: etc_munin_plugins.stat.exists and usr_share_munin_plugins.stat.exists