2022-12-29 21:13:31 +00:00
|
|
|
# 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
|
|
|
|
|
2023-09-30 15:19:10 +00:00
|
|
|
- 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
|