15 lines
593 B
YAML
15 lines
593 B
YAML
- name: remove the upstart init file
|
|
file: path=/etc/init/ansible_test.conf state=absent
|
|
register: remove_upstart_result
|
|
|
|
- name: remove the upstart init file
|
|
file: path=/etc/init/ansible_test_broken.conf state=absent
|
|
register: remove_upstart_broken_result
|
|
|
|
- name: assert that the upstart init file was removed
|
|
assert:
|
|
that:
|
|
- "remove_upstart_result.path == '/etc/init/ansible_test.conf'"
|
|
- "remove_upstart_result.state == 'absent'"
|
|
- "remove_upstart_broken_result.path == '/etc/init/ansible_test_broken.conf'"
|
|
- "remove_upstart_broken_result.state == 'absent'"
|