Log cronjob on ansiblehost role

This commit is contained in:
Salt 2020-02-08 01:44:06 -06:00
parent f8c152ebc1
commit 427804d68b

View File

@ -48,5 +48,5 @@
cron:
hour: "0"
name: ansible-pull
job: "cd /opt/ansible-repo && ansible-playbook ec2.yml"
job: "cd /opt/ansible-repo && ansible-playbook ec2.yml > /var/log/ansible-pull.log 2>&1"
become: true