From ce65a4387cb0c88f2f363ac30215264b737b9239 Mon Sep 17 00:00:00 2001 From: Expand-sys Date: Tue, 20 Dec 2022 14:01:55 +1100 Subject: [PATCH] made ccash use crontab to start it on boot --- deployment/main.yml | 7 +++++++ deployment/vars/default.yml | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/deployment/main.yml b/deployment/main.yml index df1f9cd..8c2fb7b 100644 --- a/deployment/main.yml +++ b/deployment/main.yml @@ -186,6 +186,13 @@ cmd: | pm2 startup when: START_ON_BOOT == true and START_SERVICES == true and WEB_ENABLED == true + - name: enable ccash on boot + ansible.builtin.cron: + name: CCash enable on boot + special_time: reboot + state: present + job: '{{ BUILD_DIR }}/CCash/build/bank {{ ADMIN_A }} {{ SAVE_FREQ }} true' + when: START_ON_BOOT == true - name: allow firewalld ports ansible.posix.firewalld: diff --git a/deployment/vars/default.yml b/deployment/vars/default.yml index d8ac2f9..ecfa980 100644 --- a/deployment/vars/default.yml +++ b/deployment/vars/default.yml @@ -6,4 +6,5 @@ USE_DEPRECATED_ENDPOINTS: "true" WEB_ENABLED: true WEB_PORT: "3000" START_SERVICES: true -BRANCH: "v2" \ No newline at end of file +START_ON_BOOT: true +BRANCH: "v2.5.1" \ No newline at end of file