fix: adds dashy config as managed config in ansible
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 10s
Nix Format Check / check-format (push) Failing after 1m9s
Python Lint Check / check-python (push) Failing after 5s

This commit is contained in:
2025-08-29 17:06:51 +02:00
parent 0b7e727fc9
commit d82a7247cd
2 changed files with 285 additions and 2 deletions

View File

@@ -25,13 +25,20 @@
mode: "0644"
register: dashy_compose
- name: Deploy Dashy config.yml
ansible.builtin.template:
src: conf.yml.j2
dest: "{{ dashy_data_dir }}/conf.yml"
mode: "0644"
register: dashy_config
- name: Stop Dashy service
ansible.builtin.command: docker compose -f "{{ dashy_service_dir }}/docker-compose.yml" down --remove-orphans
when: dashy_compose.changed
when: dashy_compose.changed or dashy_config.changed
- name: Start Dashy service
ansible.builtin.command: docker compose -f "{{ dashy_service_dir }}/docker-compose.yml" up -d
when: dashy_compose.changed
when: dashy_compose.changed or dashy_config.changed
tags:
- services
- dashy