datacoop.ansible/roles/docker/tasks/services/netdata.yml

18 lines
433 B
YAML
Raw Normal View History

# vim: ft=yaml.ansible
2019-02-28 07:31:28 +00:00
---
2023-09-30 16:15:27 +00:00
- name: Create Netdata volume folder
file:
path: "{{ services.netdata.volume_folder }}"
state: directory
- name: Upload Compose file for Netdata
template:
src: compose-files/netdata.yml.j2
dest: "{{ services.netdata.volume_folder }}/docker-compose.yml"
- name: Deploy Netdata
docker_compose:
project_src: "{{ services.netdata.volume_folder }}"
pull: true
state: present