Fix #25 Get installed version of Apache. failed

Add absolute path for apache/httpd to avoid command not found error
This commit is contained in:
Felix Peters 2015-02-06 13:21:51 +01:00
parent 2abee5155c
commit e9d5dedc70
3 changed files with 3 additions and 1 deletions

View file

@ -17,7 +17,7 @@
# Figure out what version of Apache is installed.
- name: Get installed version of Apache.
command: "{{ apache_daemon }} -v"
shell: "{{apache_daemon_path}}{{ apache_daemon }} -v"
changed_when: false
always_run: yes
register: _apache_version

View file

@ -1,5 +1,6 @@
---
apache_daemon: apache2
apache_daemon_path: /usr/sbin/
apache_server_root: /etc/apache2
apache_conf_path: /etc/apache2

View file

@ -1,5 +1,6 @@
---
apache_daemon: httpd
apache_daemon_path: /usr/sbin/
apache_server_root: /etc/httpd
apache_conf_path: /etc/httpd/conf.d