---
  - name: Add upload script
    template: src=upload-script.j2 dest=/usr/local/bin/ansible-upload-vm-logs mode=755

  - name: Add a periodical upload of logs and result
    cron: name="Upload ansible files to http server"
          minute="*/7"
          job="/usr/local/bin/ansible-upload-vm-logs http://10.0.2.100/ /var/log/vm-bootstrap.log > /var/log/ansible-upload.log"
          cron_file=ansible-upload-log user="root"
