---
- name: Add cron job to clean SecureDrop tmp dir daily.
  cron:
    name: cleanup SecureDrop temp dir
    job: "{{ securedrop_code }}/manage.py clean-tmp"
    special_time: daily
  tags:
    - cron

---
- name: Remove cron job to clean SecureDrop tmp dir daily (old manage.py syntax).
  cron:
    name: cleanup SecureDrop temp dir
    job: "{{ securedrop_code }}/manage.py clean_tmp"
    special_time: daily
    state: absent
  tags:
    - cron

- name: Add cron job to clean SecureDrop tmp dir daily (new manage.py syntax).
  cron:
    name: Cleanup SecureDrop temporary directory.
    job: "{{ securedrop_code }}/manage.py clean-tmp"
    special_time: daily
  tags:
    - cron

Add new/ remove old manage.py syntax command to cleanup tmp dir
Add new/ remove old manage.py syntax command to cleanup tmp dir
