# This is for an OS other than Fedora 18

# The stock install puts a small /library/ka-lite/content/assessmentitems.sqlite file, so use size instead of exists
- name: See if assessment is already installed
  stat: path="{{ kalite_root }}/content/assessment/khan/assessmentitems.sqlite"
  register: khan_assessment_installed

- name: Run the assessment setup using kalite manage
  command: "{{ kalite_program }} manage unpack_assessment_zip {{ downloads_dir }}/khan_assessment.zip"
  environment:
    KALITE_HOME: "{{ kalite_root }}"
  async: 900
  poll: 10
  when: not khan_assessment_installed.stat.exists or khan_assessment_installed.stat.size < 20000
