- /roles/[delete]pve_monitoring/tasks/main.yml - /roles/[delete]pve_monitoring/templates/pve_exporter_config.yml.j2 - /roles/dashy/tasks/main.yml - /roles/dashy/templates/conf.yml.j2 - /roles/dashy/templates/docker-compose.yml.j2 - /roles/matrix/files/log.config - /roles/matrix/tasks/main.yml - /roles/matrix/templates/docker-compose.yml.j2 - /roles/matrix/templates/homeserver.yaml.j2 - /arhive_roles/[delete]pve_monitoring/tasks/main.yml - /arhive_roles/[delete]pve_monitoring/templates/pve_exporter_config.yml.j2 - /arhive_roles/dashy/tasks/main.yml - /arhive_roles/dashy/templates/docker-compose.yml.j2 - /arhive_roles/dashy/templates/conf.yml.j2 - /arhive_roles/matrix/files/log.config - /arhive_roles/matrix/tasks/main.yml - /arhive_roles/matrix/templates/docker-compose.yml.j2 - /arhive_roles/matrix/templates/homeserver.yaml.j2 - /inventories/hosts
41 lines
871 B
YAML
41 lines
871 B
YAML
---
|
|
- name: Create Dashy directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
mode: 0755
|
|
loop:
|
|
- "{{ dashy_base_dir }}"
|
|
- "{{ dashy_config_dir }}"
|
|
|
|
- name: Create Dashy configuration file
|
|
template:
|
|
src: conf.yml.j2
|
|
dest: "{{ dashy_config_dir }}/conf.yml"
|
|
mode: 0644
|
|
|
|
- name: Deploy Dashy docker-compose.yml
|
|
template:
|
|
src: docker-compose.yml.j2
|
|
dest: "{{ dashy_base_dir }}/docker-compose.yml"
|
|
mode: 0644
|
|
|
|
- name: Start Dashy container
|
|
shell: |
|
|
cd {{ dashy_base_dir }}
|
|
docker compose up -d
|
|
args:
|
|
executable: /bin/bash
|
|
|
|
- name: Wait for Dashy to start
|
|
pause:
|
|
seconds: 10
|
|
|
|
- name: Check Dashy container status
|
|
shell: docker ps --filter name=dashy
|
|
register: dashy_status
|
|
changed_when: false
|
|
|
|
- name: Show Dashy status
|
|
debug:
|
|
var: dashy_status.stdout |