mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-11-09 15:33:30 +01:00
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:
parent
2abee5155c
commit
e9d5dedc70
3 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
apache_daemon: apache2
|
||||
apache_daemon_path: /usr/sbin/
|
||||
apache_server_root: /etc/apache2
|
||||
apache_conf_path: /etc/apache2
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
apache_daemon: httpd
|
||||
apache_daemon_path: /usr/sbin/
|
||||
apache_server_root: /etc/httpd
|
||||
apache_conf_path: /etc/httpd/conf.d
|
||||
|
||||
|
|
Loading…
Reference in a new issue