From 5161bcdfb532f0ce61f25f7431096a0f97b78419 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Thu, 6 Feb 2020 19:59:32 +0500 Subject: [PATCH] Improve code --- tasks/apache/install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/apache/install.yml b/tasks/apache/install.yml index 12c06c6..075adfe 100644 --- a/tasks/apache/install.yml +++ b/tasks/apache/install.yml @@ -19,7 +19,7 @@ - name: Configure Apache ports template: src: templates/apache/ports.conf - dest: /etc/apache2/ports.conf + dest: '{{ common__apache__conf_dir }}/ports.conf' mode: 'u=rw,g=r,o=r' owner: root group: root @@ -27,7 +27,7 @@ - name: Disable directory listing lineinfile: - path: /etc/apache2/apache2.conf + path: '{{ common__apache__conf_dir }}/apache2.conf' regexp: '^Options Indexes FollowSymLinks$' line: 'Options FollowSymLinks' notify: common | Restart Apache