---
- name: stop apache after tests - non Red Hat
  shell: apachectl -k stop -f {{ subversion_server_dir }}/subversion.conf
  when: ansible_os_family not in ['RedHat']

- name: stop apache after tests - Red Hat
  shell: "kill $(cat '{{ subversion_server_dir }}/apache.pid')"
  when: ansible_os_family in ['RedHat']

- name: remove tmp subversion server dir
  file:
    path: '{{ subversion_server_dir }}'
    state: absent

- name: remove tmp subversion checkout dir
  file:
    path: '{{ subversion_test_dir }}'
    state: absent
