mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-11-24 16:28:03 +01:00
24 lines
506 B
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 }}
|