Commit a95feb2a authored by Jürgen Haas's avatar Jürgen Haas

Change log directory for GCloud tools

parent 6ed5a787
......@@ -13,6 +13,11 @@
- include: install.yml
- name: "Ensure log directory"
file:
path='/var/log/gcloud'
state='directory'
- name: "Crontabs for Google Cloud Sync"
cron:
name='GCloud sync {{ item.source }}'
......@@ -21,7 +26,7 @@
weekday={{ item.weekday|default(omit) }}
hour={{ item.hour|default('1') }}
minute={{ item.minute|default('0') }}
job='gsutil -m rsync -e -r {{ item.source }} gs://{{ item.bucket }}/ >>/var/log/gcloud.log 2>&1'
job='gsutil -m rsync -e -r {{ item.source }} gs://{{ item.bucket }}/ >>/var/log/gcloud/rsync.log 2>&1'
with_items: '{{ gcloud_sync|default([]) }}'
tags: 'cron'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment