This commit is contained in:
hogweed1 2025-04-15 02:25:46 +10:00
parent 2e58471e19
commit f5bf174b23
2 changed files with 7 additions and 1 deletions

View File

@ -9,7 +9,7 @@ Group=prometheus
EnvironmentFile=-/etc/sysconfig/alertmanager EnvironmentFile=-/etc/sysconfig/alertmanager
ExecStart=/usr/sbin/alertmanager \ ExecStart=/usr/sbin/alertmanager \
--config.file=/etc/alertmanager/alertmanager.yaml \ --config.file=/etc/alertmanager/alertmanager.yaml \
--storage.path=/base/alertmanager \ --storage.path=/alertmanager-data \
--web.config.file=/etc/alertmanager/web-config.yaml --web.config.file=/etc/alertmanager/web-config.yaml
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID

View File

@ -40,6 +40,12 @@
state: directory state: directory
group: prometheus group: prometheus
owner: prometheus owner: prometheus
- name: Creates directory
ansible.builtin.file:
path: /alertmanager-data
state: directory
group: prometheus
owner: prometheus
- name: Unarchive a file that needs to be downloaded (added in 2.0) - name: Unarchive a file that needs to be downloaded (added in 2.0)
ansible.builtin.unarchive: ansible.builtin.unarchive: