Skip to content

Commit

Permalink
Fix path for symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Rundlett committed Oct 25, 2020
1 parent c91ee6c commit 0c77aae
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/roles/apache-php/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,16 @@
when: docker_skip_tasks is not defined or not docker_skip_tasks

# Make sure that there's a symlink for the access and error logs
# @TODO Test this on CentOS/RHEL and possibly source /etc/httpd/envvars
- name: Add symbolic link to Apache's access log file for easy access
file:
src: "${APACHE_LOG_DIR}/access_log"
dest: "${APACHE_LOG_DIR}/access.log"
src: "/var/log/{{ service_apache }}/access_log"
dest: "/var/log/{{ service_apache }}/access.log"
state: link

- name: Add symbolic link to Apache's error log file for easy access
file:
src: "${APACHE_LOG_DIR}/error_log"
dest: "${APACHE_LOG_DIR}/error.log"
src: "/var/log/{{ service_apache }}/error_log"
dest: "/var/log/{{ service_apache }}/error.log"
state: link

# Might need these for SELinux to be turned back on
Expand Down

0 comments on commit 0c77aae

Please sign in to comment.