ansible/test/integration/targets/service/tasks/rc_cleanup.yml
Rick Elrod 44a471f6ba
Enable service integration tests for FreeBSD (#68980)
* Enable service integration tests for FreeBSD

Change:
Adds necessary rc file for freebsd, and gets tests passing for it.

Test Plan:
Ran test with `--remote freebsd/12.1` and `--remote freebsd/11.1`. Both
passed.

Signed-off-by: Rick Elrod <rick@elrod.me>

* Update test/integration/targets/service/tasks/rc_setup.yml

Co-Authored-By: Matt Clay <matt@mystile.com>

* fix up comment

Signed-off-by: Rick Elrod <rick@elrod.me>

Co-authored-by: Matt Clay <matt@mystile.com>
2020-04-17 10:41:08 -07:00

9 lines
281 B
YAML

- name: remove the rc init file
file: path=/etc/rc.d/ansible_test state=absent
register: remove_rc_result
- name: assert that the rc init file was removed
assert:
that:
- "remove_rc_result.path == '/etc/rc.d/ansible_test'"
- "remove_rc_result.state == 'absent'"