diff options
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/lineinfile.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tasks/lineinfile.yml b/tasks/lineinfile.yml index c6c9e39..5f93b92 100644 --- a/tasks/lineinfile.yml +++ b/tasks/lineinfile.yml @@ -8,7 +8,8 @@ state: present become: true delegate_to: '{{ prometheus_target_host }}' - loop: '{{ prometheus_target_exporter }}' + loop: '{{ prometheus_target_exporter + + ([] if prometheus_target_skip_default_exporters else prometheus_target_default_exporters) }}' notify: - Run command hook - Run shell hook |