From 26410dc3cd1ae2ff34cc999f62e17f0434074f58 Mon Sep 17 00:00:00 2001 From: meaz Date: Tue, 11 Jul 2023 22:34:30 +0200 Subject: [PATCH] add update task --- tasks/main.yml | 3 +++ tasks/update.yml | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 tasks/update.yml diff --git a/tasks/main.yml b/tasks/main.yml index d441cdf..852a0be 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,3 +5,6 @@ - name: Include install app include_tasks: installapp.yml + +- name: Include update app + include_tasks: update.yml \ No newline at end of file diff --git a/tasks/update.yml b/tasks/update.yml new file mode 100644 index 0000000..c98ede3 --- /dev/null +++ b/tasks/update.yml @@ -0,0 +1,7 @@ +--- + +- name: '[Update] - Update akaunting' + shell: "php {{ akaunting_app_dir }}/artisan update:all" + become: yes + become_user: "{{ akaunting_user }}" + when: akaunting_update == true \ No newline at end of file