made ccash use crontab to start it on boot

This commit is contained in:
Expand-sys 2022-12-20 14:01:55 +11:00
parent 8696c5d870
commit ce65a4387c
2 changed files with 9 additions and 1 deletions

View file

@ -186,6 +186,13 @@
cmd: | cmd: |
pm2 startup pm2 startup
when: START_ON_BOOT == true and START_SERVICES == true and WEB_ENABLED == true 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 - name: allow firewalld ports
ansible.posix.firewalld: ansible.posix.firewalld:

View file

@ -6,4 +6,5 @@ USE_DEPRECATED_ENDPOINTS: "true"
WEB_ENABLED: true WEB_ENABLED: true
WEB_PORT: "3000" WEB_PORT: "3000"
START_SERVICES: true START_SERVICES: true
BRANCH: "v2" START_ON_BOOT: true
BRANCH: "v2.5.1"