diff --git a/roles/alertmanager/defaults/main/config.yml b/roles/alertmanager/defaults/main/config.yml new file mode 100644 index 0000000..6d8ea8b --- /dev/null +++ b/roles/alertmanager/defaults/main/config.yml @@ -0,0 +1,8 @@ +--- +alertmanager_config_global: {} +alertmanager_config_route: {} +alertmanager_config_receivers: [] +alertmanager_config: + global: "{{ alertmanager_config_global }}" + route: "{{ alertmanager_config_route }}" + receivers: "{{ alertmanager_config_receivers }}" diff --git a/roles/alertmanager/defaults/main/main.yml b/roles/alertmanager/defaults/main/main.yml index 043cd28..9666bea 100644 --- a/roles/alertmanager/defaults/main/main.yml +++ b/roles/alertmanager/defaults/main/main.yml @@ -8,8 +8,3 @@ alertmanager_config_path: "{{ alertmanager_base_path }}/config" alertmanager_config_file: "{{ alertmanager_config_path }}/alertmanager.yml" alertmanager_data_path: "{{ alertmanager_base_path }}/data" - -alertmanager_config: - global: {} - route: {} - receivers: []