Kouhei Sutou
null+****@clear*****
Fri Aug 25 22:34:42 JST 2017
Kouhei Sutou 2017-08-25 22:34:42 +0900 (Fri, 25 Aug 2017) New Revision: 7207583a0ddc7e053ecf918aea288f64aaa26bb7 https://github.com/groonga/packages.groonga.org/commit/7207583a0ddc7e053ecf918aea288f64aaa26bb7 Message: Support logrotate Added files: ansible/files/etc/logrotate.d/apache2 Modified files: ansible/playbook.yml Renamed files: ansible/files/etc/apache2/sites-available/packages.groonga.org.conf (from ansible/files/packages.groonga.org.conf) Renamed: ansible/files/etc/apache2/sites-available/packages.groonga.org.conf (+0 -0) 100% =================================================================== Added: ansible/files/etc/logrotate.d/apache2 (+20 -0) 100644 =================================================================== --- /dev/null +++ ansible/files/etc/logrotate.d/apache2 2017-08-25 22:34:42 +0900 (aee13e3) @@ -0,0 +1,20 @@ +/var/log/apache2/*.log { + daily + missingok + rotate 3650 + compress + delaycompress + notifempty + create 640 root adm + sharedscripts + postrotate + if /etc/init.d/apache2 status > /dev/null ; then \ + /etc/init.d/apache2 reload > /dev/null; \ + fi; + endscript + prerotate + if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ + run-parts /etc/logrotate.d/httpd-prerotate; \ + fi; \ + endscript +} Modified: ansible/playbook.yml (+5 -2) =================================================================== --- ansible/playbook.yml 2017-06-22 11:16:14 +0900 (07a2494) +++ ansible/playbook.yml 2017-08-25 22:34:42 +0900 (0869c3d) @@ -19,6 +19,7 @@ - lv - acpid - apg + - logrotate - name: Use VIM as the default editor command: update-alternatives --set editor /usr/bin/vim.basic - name: Use e-mail for apt-listchanges @@ -92,8 +93,10 @@ apt: name=apache2 - name: Put Apache configuration copy: - src=files/packages.groonga.org.conf - dest=/etc/apache2/sites-available/packages.groonga.org.conf + src: "{{ item }}" + dest: /{{ item }} + with_items: + - etc/apache2/sites-available/packages.groonga.org.conf - name: Enable our Apache configuration command: a2ensite packages.groonga.org - name: Disable default Apache configuration -------------- next part -------------- HTML����������������������������...Download