mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
10 lines
296 B
YAML
10 lines
296 B
YAML
- 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'"
|
|
|