2018-08-08 06:48:03 +02:00
|
|
|
|
- vars:
|
|
|
|
|
upstart_files:
|
|
|
|
|
- /etc/init/ansible_test.conf
|
|
|
|
|
- /etc/init/ansible_test.override
|
|
|
|
|
- /etc/init/ansible_test_broken.conf
|
|
|
|
|
block:
|
|
|
|
|
- name: remove upstart init files
|
|
|
|
|
file:
|
|
|
|
|
path: '{{ item }}'
|
|
|
|
|
state: absent
|
|
|
|
|
loop: '{{ upstart_files }}'
|
2014-02-20 00:05:35 +01:00
|
|
|
|
|
2018-08-08 06:48:03 +02:00
|
|
|
|
- name: assert that upstart init files were removed
|
|
|
|
|
raw: 'test -e {{ item }}'
|
|
|
|
|
loop: '{{ upstart_files }}'
|
|
|
|
|
register: file_exists
|
|
|
|
|
failed_when: file_exists is not failed
|