ansible/playbooks/apps/ynab.yaml

24 lines
506 B
YAML

---
- name: YNAB
hosts: servers
gather_facts: false
tasks:
- name: Create dir
ansible.builtin.file:
path: "{{ dir }}"
state: directory
mode: "0775"
- name: Write files
ansible.builtin.copy:
src: "{{ item }}"
dest: "{{ dir }}/"
mode: preserve
with_fileglob:
- files/{{ app_name }}/*
- files/{{ app_name }}/.*
notify:
- Restart service
vars:
app_name: ynab
dir: /mnt/data/{{ app_name }}