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

18 lines
433 B
YAML

# vim: ft=yaml.ansible
---
- 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