simplify ynab playbook

This commit is contained in:
Gabriel Augendre 2024-10-12 13:13:49 +02:00
parent 4216c14e0f
commit 2e055b77b0

View file

@ -3,9 +3,22 @@
hosts: servers hosts: servers
gather_facts: false gather_facts: false
tasks: tasks:
- name: Docker - name: Create dir
ansible.builtin.include_role: ansible.builtin.file:
name: docker path: "{{ dir }}"
state: directory
mode: "0775"
- name: Write files
ansible.builtin.copy:
src: "{{ item }}"
dest: "{{ dir }}/"
mode: "0600"
with_fileglob:
- files/{{ app_name }}/*
- files/{{ app_name }}/.*
notify:
- Restart service
vars: vars:
docker_app_name: ynab app_name: ynab
dir: /mnt/data/{{ app_name }}