infra-role-alertmanager/tasks/config.yml

25 lines
517 B
YAML

---
- name: Create container directories
file:
path: '{{ alertmanager_service_path }}/{{ item }}'
state: 'directory'
owner: 'dockremap'
group: 'docker'
recurse: true
mode: 0750
with_items:
- 'data'
- 'conf'
- name: Create config files
template:
src: '{{ item }}.j2'
dest: '{{ alertmanager_service_path }}/conf/{{ item }}'
owner: 'dockremap'
group: 'docker'
mode: 0640
register: alertmanager_config
with_items:
- 'alertmanager.yml'
- 'amtool.yml'