Skip to content

Commit

Permalink
fixes on syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodav committed Mar 19, 2019
1 parent 965f627 commit 9b641bb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tasks/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@
- redmine-ansible-cron


- cron: name='redmine receive emails'
job='cd {{ redmine_dir }} && bash -c 'source {{ rvm_path }} && rake -f {{ redmine_dir }}/Rakefile redmine:email:receive_imap RAILS_ENV="production" host={{ redmine_email_receive.server }} port={{ redmine_email_receive.port }} username={{ redmine_email_receive.username }} password={{ redmine_email_receive.password }} ssl={{ redmine_email_receive.ssl }} move_on_sucess=read project={{ redmine_email_receive.default_project }} allow_override={{ redmine_email_receive.allow_override }} move_on_failure=fail unknown_user=accept no_permission_check=1 delete_unprocessed=1 > /dev/null'
user='{{ redmine_system_user }}'
cron_file='redmine_server'
weekday='*'
hour='*'
minute='*/2'
- cron:
name: 'redmine receive emails'
job: "cd {{ redmine_dir }} && bash -c 'source {{ rvm_path }} && rake -f {{ redmine_dir }}/Rakefile redmine:email:receive_imap RAILS_ENV=production host={{ redmine_email_receive.server }} port={{ redmine_email_receive.port }} username={{ redmine_email_receive.username }} password={{ redmine_email_receive.password }} ssl={{ redmine_email_receive.ssl }} move_on_sucess=read project={{ redmine_email_receive.default_project }} allow_override={{ redmine_email_receive.allow_override }} move_on_failure=fail unknown_user=accept no_permission_check=1 delete_unprocessed=1 > /dev/null'"
user: '{{ redmine_system_user }}'
cron_file: 'redmine_server'
weekday: '*'
hour: '*'
minute: '*/2'
when: redmine_email_receive.enabled
tags:
- redmine-ansible-cron

0 comments on commit 9b641bb

Please sign in to comment.