# App Cronjobs

Define cronjobs per app; they run as the app user.

Host vars (per app):
```yaml
apps:
  - name: shop
    type: php
    cronjobs:
      - name: "Run scheduler"         # required
        job: "php /var/www/shop/bin/console schedule:run >> /var/log/shop-cron.log 2>&1"  # required
        schedule: "* * * * *"         # optional
        state: present                # optional
```

Defaults:
- `schedule`: "* * * * *"
- `state`: present

## Crontab
Alternatively you can use the `crontab` command to set cronjobs.

(i) Cronjobs 
