From 1eeaa98e31b1f7c852cf8bf53560d39f762f52ca Mon Sep 17 00:00:00 2001 From: Simon Michnowicz <simon.michnowicz@monash.edu> Date: Thu, 14 Mar 2019 10:12:38 +1100 Subject: [PATCH] correct file path for cron job --- roles/slurm_sql_bk/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/slurm_sql_bk/tasks/main.yml b/roles/slurm_sql_bk/tasks/main.yml index c98bcbb1..b211f7ef 100644 --- a/roles/slurm_sql_bk/tasks/main.yml +++ b/roles/slurm_sql_bk/tasks/main.yml @@ -64,4 +64,4 @@ - name: copy backup script to server ec2-user@{{ SQL_BK_DEST_HOST }} local_action: command scp -i ./slm_db_backup ./delete_old_mysql_bk.sh "ec2-user@{{ SQL_BK_DEST_HOST }}:" - name: insert delete cron job entry on remote server - local_action: command ssh -i ./slm_db_backup ec2-user@{{ SQL_BK_DEST_HOST }} "{ crontab -l ; echo '#delete old slurm backups' ; echo '00 23 * * * /home/ec2-user/backup_mysql_for_slurm.sh' ; } | crontab - " + local_action: command ssh -i ./slm_db_backup ec2-user@{{ SQL_BK_DEST_HOST }} "{ crontab -l ; echo '#delete old slurm backups' ; echo '00 23 * * * /home/ec2-user/delete_old_mysql_bk.sh' ; } | crontab - " -- GitLab