# This is for Fedora 18, assumed to be an XO

- name: Run the setup using 'kalite manage' (Fedora 18)
  command: "/usr/bin/su {{ kalite_user }} -c '{{ kalite_root }}/bin/kalite manage setup --username={{ kalite_user }} --password={{ kalite_password }} --noinput'"
  async: 900
  poll: 10

- name: Finish setup by running 'kalite start' (Fedora 18)
  command: "/usr/bin/su {{ kalite_user }} -c '{{ kalite_root }}/bin/kalite start'"
  async: 900
  poll: 10

- name: Stop kalite server started in previous step because we use systemd
  command: "/usr/bin/su {{ kalite_user }} -c '{{ kalite_root }}/bin/kalite stop'"
