1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/service/tasks/upstart_cleanup.yml

18 lines
485 B
YAML
Raw Normal View History

- 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 }}'
- 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