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

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