Add robots.txt for gitea
This commit is contained in:
parent
52d543d758
commit
4fd3945c47
2 changed files with 13 additions and 0 deletions
4
ansible/roles/gitea/files/robots.txt
Normal file
4
ansible/roles/gitea/files/robots.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
User-agent: *
|
||||
|
||||
# Ignore mirrored repos
|
||||
Disallow: /mirror/
|
|
@ -27,3 +27,12 @@
|
|||
owner: "{{ docker_user.name }}"
|
||||
notify: restart gitea
|
||||
become: true
|
||||
|
||||
- name: Install robots.txt
|
||||
template:
|
||||
src: files/robots.txt
|
||||
dest: "{{ app_data_dir }}/gitea/data/custom/robots.txt"
|
||||
mode: "{{ docker_compose_file_mask }}"
|
||||
owner: "{{ docker_user.name }}"
|
||||
notify: restart gitea
|
||||
become: true
|
||||
|
|
Loading…
Reference in a new issue