diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index edcdc85f9d..53f819ad1e 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -158,3 +158,6 @@ - name: change owner for results dir if it isn't copr shell: "chown -R copr:copr /var/lib/copr/public_html" when: copr_results_dir_st.stat.pw_name != "copr" + +- name: set acl for logstash to access httpd logs + acl: name=/var/log/lighttpd entity=logstash etype=user permissions=rx state=present diff --git a/roles/copr/frontend/tasks/main.yml b/roles/copr/frontend/tasks/main.yml index 340f338433..61c3a3fd03 100644 --- a/roles/copr/frontend/tasks/main.yml +++ b/roles/copr/frontend/tasks/main.yml @@ -46,5 +46,5 @@ - httpd - postgresql -#- name: set acl for logstash to access httpd logs -# acl: name=/var/log/httpd entity=logstash etype=user permissions=rx state=present +- name: set acl for logstash to access httpd logs + acl: name=/var/log/httpd entity=logstash etype=user permissions=rx state=present