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.
ansible/test/integration/targets/service/tasks/upstart_cleanup.yml

18 lines
485 B
YAML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

- 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