/test/integration/roles/test_service/tasks/sysv_cleanup.yml

https://github.com/ajanthanm/ansible · YAML · 10 lines · 8 code · 2 blank · 0 comment · 0 complexity · 8784994403c06d927a1649db0dd9903c MD5 · raw file

  1. - name: remove the sysV init file
  2. file: path=/etc/init.d/ansible_test state=absent
  3. register: remove_sysv_result
  4. - name: assert that the sysV init file was removed
  5. assert:
  6. that:
  7. - "remove_sysv_result.path == '/etc/init.d/ansible_test'"
  8. - "remove_sysv_result.state == 'absent'"