Skip to content

Commit

Permalink
feat: ajoute le cron pour l'envoi du sondage initial par sms
Browse files Browse the repository at this point in the history
  • Loading branch information
Shamzic committed Nov 14, 2023
1 parent a22c139 commit f2cd26b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions roles/bootstrap/tasks/setup_cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
{{ envvar_prefix }} /usr/bin/node
./dist-server/backend/lib/email.js send initial-survey
--multiple 1000 >> /var/log/{{ server_user_name }}/{{ item.name }}_emails.log 2>&1)
- name: Add a cron job to send initial survey by sms
become_user: "{{ server_user_name }}"
ansible.builtin.cron:
name: send initial survey sms for {{ item.name }}
minute: "8"
hour: "4"
job: >-
(cd {{ repository_folder }} &&
{{ envvar_prefix }} /usr/bin/node
./dist-server/backend/lib/sms-sending-tool.js send initial-survey
--multiple 1000 >> /var/log/{{ server_user_name }}/{{ item.name }}_sms.log 2>&1)
- name: Add a cron job to send email
become_user: "{{ server_user_name }}"
ansible.builtin.cron:
Expand Down

0 comments on commit f2cd26b

Please sign in to comment.