diff --git a/roles/alertmanager/tasks/configuration.yml b/roles/alertmanager/tasks/configuration.yml index 3b4ebcb..a63b708 100644 --- a/roles/alertmanager/tasks/configuration.yml +++ b/roles/alertmanager/tasks/configuration.yml @@ -13,9 +13,9 @@ - name: "Configuration | Copy templates" notify: "(Re)start and enable Alertmanager" - when: template_source_dir is defined + when: alertmanager_template_source_dir is defined with_fileglob: - - "{{ template_source_dir }}/*.tmpl" + - "{{ alertmanager_template_source_dir }}/*.tmpl" ansible.builtin.copy: src: "{{ item }}" dest: "{{ alertmanager_config_dir }}/{{ item | basename }}"