mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
593 B
YAML
16 lines
593 B
YAML
11 years ago
|
- name: remove the upstart init file
|
||
11 years ago
|
file: path=/etc/init/ansible_test.conf state=absent
|
||
11 years ago
|
register: remove_upstart_result
|
||
|
|
||
10 years ago
|
- name: remove the upstart init file
|
||
|
file: path=/etc/init/ansible_test_broken.conf state=absent
|
||
|
register: remove_upstart_broken_result
|
||
|
|
||
11 years ago
|
- name: assert that the upstart init file was removed
|
||
|
assert:
|
||
|
that:
|
||
11 years ago
|
- "remove_upstart_result.path == '/etc/init/ansible_test.conf'"
|
||
11 years ago
|
- "remove_upstart_result.state == 'absent'"
|
||
10 years ago
|
- "remove_upstart_broken_result.path == '/etc/init/ansible_test_broken.conf'"
|
||
|
- "remove_upstart_broken_result.state == 'absent'"
|