2014-02-20 00:05:35 +01:00
|
|
|
- name: remove the upstart init file
|
2014-03-07 16:41:01 +01:00
|
|
|
file: path=/etc/init/ansible_test.conf state=absent
|
2014-02-20 00:05:35 +01:00
|
|
|
register: remove_upstart_result
|
|
|
|
|
2014-09-18 21:39:54 +02:00
|
|
|
- name: remove the upstart init file
|
|
|
|
file: path=/etc/init/ansible_test_broken.conf state=absent
|
|
|
|
register: remove_upstart_broken_result
|
|
|
|
|
2014-02-20 00:05:35 +01:00
|
|
|
- name: assert that the upstart init file was removed
|
|
|
|
assert:
|
|
|
|
that:
|
2014-03-07 16:41:01 +01:00
|
|
|
- "remove_upstart_result.path == '/etc/init/ansible_test.conf'"
|
2014-02-20 00:05:35 +01:00
|
|
|
- "remove_upstart_result.state == 'absent'"
|
2014-09-18 21:39:54 +02:00
|
|
|
- "remove_upstart_broken_result.path == '/etc/init/ansible_test_broken.conf'"
|
|
|
|
- "remove_upstart_broken_result.state == 'absent'"
|