Changeset - 7ec508fb5108
[Not reviewed]
0 1 1
Branko Majic (branko) - 7 years ago 2017-04-19 21:40:28
branko@majic.rs
MAR-98: Deploy cronjob task for pip requirements upgrade checks directly in order to be able to specify mail recipient.
2 files changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
roles/common/files/cron_check_pip_requirements
Show inline comments
 
new file 100644
 
MAILTO=root
 
0 * * * * pipreqcheck /usr/local/bin/pip_check_requirements_upgrades.sh -q -V /var/lib/pipreqcheck/virtualenv /etc/pip_check_requirements_upgrades
roles/common/tasks/main.yml
Show inline comments
 
@@ -205,8 +205,8 @@
 
        owner=root group=root mode=755
 

	
 
- name: Deploy crontab entry for checking pip requirements
 
  cron: name="check_pip_requirements" cron_file="check_pip_requirements" hour=0 minute=0 job="/usr/local/bin/pip_check_requirements_upgrades.sh /etc/pip_check_requirements_upgrades"
 
        state=present user=pipreqcheck
 
  copy: src="cron_check_pip_requirements" dest="/etc/cron.d/check_pip_requirements"
 
        owner="root" group="root" mode=644
 

	
 
- name: Explicitly run all handlers
 
  include: ../handlers/main.yml
0 comments (0 inline, 0 general)