diff --git a/roles/kojipkgs/tasks/main.yml b/roles/kojipkgs/tasks/main.yml index 57b96a44f9..1afcb5a980 100644 --- a/roles/kojipkgs/tasks/main.yml +++ b/roles/kojipkgs/tasks/main.yml @@ -6,13 +6,21 @@ - name: install apache config files for local apache copy: src={{ item }} dest=/etc/httpd/conf.d/{{ item }} owner=root group=root mode=644 with_items: - - kojipkgs.conf - infrastructure.conf notify: - reload httpd tags: - kojipkgs +- name: install apache config templates for local apache + template: src={{ item }} dest=/etc/httpd/conf.d/{{ item }} owner=root group=root mode=644 + with_items: + - kojipkgs.conf + notify: + - reload httpd + tags: + - kojipkgs + - name: make sure httpd listens on port 8080 lineinfile: dest=/etc/httpd/conf/httpd.conf state=present regexp="^Listen 80" line="Listen 8080" notify: diff --git a/roles/kojipkgs/files/kojipkgs.conf b/roles/kojipkgs/templates/kojipkgs.conf similarity index 94% rename from roles/kojipkgs/files/kojipkgs.conf rename to roles/kojipkgs/templates/kojipkgs.conf index 588f6b1f70..434d9adf8a 100644 --- a/roles/kojipkgs/files/kojipkgs.conf +++ b/roles/kojipkgs/templates/kojipkgs.conf @@ -4,8 +4,8 @@ ServerLimit 512 RequestHeader unset Accept-Encoding early -CustomLog "| /usr/sbin/rotatelogs /var/log/httpd/kojipkgs01.fedoraproject.org-access.log.%Y-%m-%d 86400" combined -ErrorLog "| /usr/sbin/rotatelogs /var/log/httpd/kojipkgs01.fedoraproject.org-error.log.%Y-%m-%d 86400" +CustomLog "| /usr/sbin/rotatelogs /var/log/httpd/{{inventory_hostname}}-access.log.%Y-%m-%d 86400" combined +ErrorLog "| /usr/sbin/rotatelogs /var/log/httpd/{{inventory_hostname}}-error.log.%Y-%m-%d 86400" Alias /atomic /mnt/fedora_koji/koji/atomic