summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/service/tasks/sysv_cleanup.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/service/tasks/sysv_cleanup.yml')
-rw-r--r--test/integration/targets/service/tasks/sysv_cleanup.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/integration/targets/service/tasks/sysv_cleanup.yml b/test/integration/targets/service/tasks/sysv_cleanup.yml
new file mode 100644
index 0000000..dbdfcf8
--- /dev/null
+++ b/test/integration/targets/service/tasks/sysv_cleanup.yml
@@ -0,0 +1,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'"