summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/service/tasks/sysv_cleanup.yml
blob: dbdfcf8b495c6843c458dce512c1a7026a31d182 (plain)
1
2
3
4
5
6
7
8
9
- name: remove the sysV init file
  file: path=/etc/init.d/ansible_test state=absent
  register: remove_sysv_result

- name: assert that the sysV init file was removed
  assert:
    that:
    - "remove_sysv_result.path == '/etc/init.d/ansible_test'"
    - "remove_sysv_result.state == 'absent'"