mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-11-21 14:58:02 +01:00
simplify ynab playbook
This commit is contained in:
parent
4216c14e0f
commit
2e055b77b0
1 changed files with 17 additions and 4 deletions
|
@ -3,9 +3,22 @@
|
|||
hosts: servers
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Docker
|
||||
ansible.builtin.include_role:
|
||||
name: docker
|
||||
- name: Create dir
|
||||
ansible.builtin.file:
|
||||
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:
|
||||
docker_app_name: ynab
|
||||
app_name: ynab
|
||||
dir: /mnt/data/{{ app_name }}
|
||||
|
|
Loading…
Reference in a new issue