- file: dest=/srv/web/budget.fedoraproject.org state=directory

- template: >
    src=budget-sync.j2 dest=/usr/local/bin/budget-sync
    owner=root group=root mode=0755
  tags:
  - fedora-budget
  - fedora-budget/build

- copy: >
    src=cron-budget-sync dest=/etc/cron.d/budget-sync
    owner=root group=root mode=0644
  tags:
  - fedora-budget
  - fedora-budget/build
  when: env == "production"

- copy: >
    src=cron-budget-sync.stg dest=/etc/cron.d/budget-sync
    owner=root group=root mode=0644
  tags:
  - fedora-budget
  - fedora-budget/build
  when: env == "staging"
