Merge branch 'master' of ssh://gitlab.social.my-wan.de:22422/rene/ansible-pull
This commit is contained in:
@@ -84,16 +84,4 @@
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
loop: "{{ files_to_change.files }}"
|
||||
notify: restart_jitsi
|
||||
|
||||
- name: jitsimeet | cron | schedule refresh of statistics
|
||||
cron:
|
||||
name: "Get statistics for Jitsi [{{ my_idx }}]"
|
||||
user: root
|
||||
job: "{{ item }}"
|
||||
loop_control:
|
||||
index_var: my_idx
|
||||
loop:
|
||||
- "/root/jitsi-statistics.sh"
|
||||
- "sleep 20; /root/jitsi-statistics.sh"
|
||||
- "sleep 40; /root/jitsi-statistics.sh"
|
||||
notify: restart_jitsi
|
||||
@@ -13,6 +13,7 @@
|
||||
# install software
|
||||
- include_tasks: prepare_system.yml
|
||||
- include_tasks: install_jitsimeet.yml
|
||||
- include_tasks: system_setup/cron.yml
|
||||
|
||||
rescue:
|
||||
- set_fact: task_failed=true
|
||||
|
||||
21
roles/jitsimeet/tasks/system_setup/cron.yml
Normal file
21
roles/jitsimeet/tasks/system_setup/cron.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
- name: jitsi | cron | schedule letsencrypt
|
||||
tags: cron
|
||||
cron:
|
||||
name: "For Letsencrypt"
|
||||
user: root
|
||||
hour: 1
|
||||
minute: 0
|
||||
day: 1
|
||||
job: "certbot renew -q"
|
||||
|
||||
- name: jitsimeet | cron | schedule refresh of statistics
|
||||
cron:
|
||||
name: "Get statistics for Jitsi [{{ my_idx }}]"
|
||||
user: root
|
||||
job: "{{ item }}"
|
||||
loop_control:
|
||||
index_var: my_idx
|
||||
loop:
|
||||
- "/root/jitsi-statistics.sh"
|
||||
- "sleep 20; /root/jitsi-statistics.sh"
|
||||
- "sleep 40; /root/jitsi-statistics.sh"
|
||||
Reference in New Issue
Block a user