Prepare role when service differs from daemon name

- introduce new apache_service in addition to apache_daemon for systems
  where service name is different from daemon name
- replace apache_daemon by apache_service in service status check
This commit is contained in:
liquidat 2015-12-29 21:57:25 +01:00
parent 1a12e57862
commit 55a5b2d07f

View file

@ -41,6 +41,6 @@
- name: Ensure Apache has selected state and enabled on boot.
service:
name: "{{ apache_daemon }}"
name: "{{ apache_service }}"
state: "{{ apache_state }}"
enabled: yes