add web server support to mirror role
This commit is contained in:
parent
8ab0c58e21
commit
7c0c59a187
80 changed files with 517 additions and 0 deletions
|
@ -85,3 +85,28 @@
|
|||
minute: 10
|
||||
job: "find /var/log/sync-mirrors/ -xdev -type f -mtime +30 -name '*.log' -execdir rm {} \\+"
|
||||
user: mirror
|
||||
|
||||
- name: copy static web content
|
||||
synchronize:
|
||||
dest: "/srv/web/{{ inventory_hostname }}/"
|
||||
delete: yes
|
||||
recursive: yes
|
||||
src: static
|
||||
|
||||
- name: install nginx xslt config
|
||||
copy:
|
||||
dest: /etc/nginx/mirror.xslt
|
||||
src: mirror.xslt
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: root
|
||||
notify: restart nginx
|
||||
|
||||
- name: create nginx mirror config
|
||||
template:
|
||||
dest: "/etc/nginx/conf.d/{{ inventory_hostname }}/mirror.conf"
|
||||
src: mirror.conf.j2
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: root
|
||||
notify: restart nginx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue