ansible/playbooks/apps/ynab.yaml

25 lines
506 B
YAML
Raw Normal View History

2024-10-12 13:11:19 +02:00
---
- name: YNAB
hosts: servers
gather_facts: false
tasks:
2024-10-12 13:13:49 +02:00
- name: Create dir
ansible.builtin.file:
path: "{{ dir }}"
state: directory
mode: "0775"
- name: Write files
ansible.builtin.copy:
src: "{{ item }}"
dest: "{{ dir }}/"
2024-10-14 20:12:39 +02:00
mode: preserve
2024-10-12 13:13:49 +02:00
with_fileglob:
- files/{{ app_name }}/*
- files/{{ app_name }}/.*
notify:
- Restart service
2024-10-12 13:11:19 +02:00
vars:
2024-10-12 13:13:49 +02:00
app_name: ynab
dir: /mnt/data/{{ app_name }}