Testing that service not enabled during check run (#16739)

* Enabled more tests in test_service on systems with systemd.
* Fix inconsistency in cleaning up test service. The conditions for service setup and service cleanup were different.
* Add check mode run for service enable.
This commit is contained in:
Gennady Trafimenkov
2016-07-29 19:35:03 +04:00
committed by Matt Clay
parent 380ed053e8
commit 2bc679be07
5 changed files with 42 additions and 22 deletions

View File

@@ -1,6 +1,3 @@
- name: set service_type fact
set_fact: service_type=sysv
- name: install the sysV init file
copy: src=ansible.sysv dest=/etc/init.d/ansible_test mode=0755
register: install_sysv_result