Last change
on this file since 3671 was 3671, checked in by Bruno Cornec, 7 years ago |
Adds management of log rotation for mondorescue sites
|
File size:
1.0 KB
|
Rev | Line | |
---|
[3655] | 1 | ---
|
---|
| 2 |
|
---|
| 3 | - name: Check that Apache is installed
|
---|
| 4 | urpmi: name=apache state=installed no-recommends=yes
|
---|
| 5 | tags: httpd
|
---|
| 6 |
|
---|
| 7 | - name: Configure Apache log directories
|
---|
| 8 | file: path=/var/log/httpd/{{ item }} state=directory owner=apache group=apache mode=0755
|
---|
| 9 | with_items:
|
---|
| 10 | - www.mondorescue.org
|
---|
| 11 | - www.mondorescue.com
|
---|
| 12 | - www1.mondorescue.org
|
---|
| 13 | - oldwww.mondorescue.org
|
---|
| 14 | - mondorescue.hpintelco.org
|
---|
| 15 | - www.project-builder.org
|
---|
| 16 | - www1.project-builder.org
|
---|
| 17 | - pusk.project-builder.org
|
---|
| 18 | - uuwl.project-builder.org
|
---|
| 19 | - www.dploy.org
|
---|
| 20 | - www1.dploy.org
|
---|
| 21 |
|
---|
| 22 | - name: Configure Apache
|
---|
| 23 | template: src={{ item }} dest=/etc/httpd/conf/vhosts.d/{{ item | basename }} owner=root group=root mode=0644 backup=yes
|
---|
| 24 | with_fileglob: [ 'templates/*.conf' ]
|
---|
| 25 | notify:
|
---|
| 26 | - restart httpd
|
---|
| 27 | tags: httpd
|
---|
| 28 |
|
---|
[3671] | 29 | - name: Configure Apache logrotate
|
---|
| 30 | copy: src=files/mondorescue.logrot dest=/etc/logrotate.d/mondorescue owner=root group=root mode=0644 backup=yes
|
---|
| 31 | tags: httpd
|
---|
| 32 |
|
---|
[3655] | 33 | - name: Check that Apache is running and enabled
|
---|
[3671] | 34 | service: name=httpd state=started enabled=yes
|
---|
[3655] | 35 | tags: httpd
|
---|
Note:
See
TracBrowser
for help on using the repository browser.