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