|
@ -1,41 +1,41 @@ |
|
|
--- |
|
|
--- |
|
|
# - name: gitea | configure | daemonize gitea |
|
|
- name: gitea | configure | daemonize gitea |
|
|
# template: |
|
|
template: |
|
|
# src: "etc/systemd/system/gitea.service.j2" |
|
|
src: "etc/systemd/system/gitea.service.j2" |
|
|
# dest: "/etc/systemd/system/gitea.service" |
|
|
dest: "/etc/systemd/system/gitea.service" |
|
|
# owner: root |
|
|
owner: root |
|
|
# group: root |
|
|
group: root |
|
|
# mode: 0644 |
|
|
mode: 0644 |
|
|
# become: yes |
|
|
become: yes |
|
|
# notify: |
|
|
notify: |
|
|
# - Reload daemon |
|
|
- Reload daemon |
|
|
|
|
|
|
|
|
# - name: gitea | configure | write gitea app.ini |
|
|
- name: gitea | configure | write gitea app.ini |
|
|
# template: |
|
|
template: |
|
|
# src: "etc/gitea/app.ini.j2" |
|
|
src: "etc/gitea/app.ini.j2" |
|
|
# dest: "/etc/gitea/app.ini" |
|
|
dest: "/etc/gitea/app.ini" |
|
|
# owner: root |
|
|
owner: root |
|
|
# group: "{{ gitea__group }}" |
|
|
group: "{{ gitea__group }}" |
|
|
# mode: 0770 |
|
|
mode: 0770 |
|
|
# become: yes |
|
|
become: yes |
|
|
# notify: |
|
|
notify: |
|
|
# - Restart gitea |
|
|
- Restart gitea |
|
|
|
|
|
|
|
|
# - name: gitea | configure | write fail2ban filter config |
|
|
- name: gitea | configure | write fail2ban filter config |
|
|
# template: |
|
|
template: |
|
|
# src: "etc/fail2ban/filter.d/gitea.conf.j2" |
|
|
src: "etc/fail2ban/filter.d/gitea.conf.j2" |
|
|
# dest: "/etc/fail2ban/filter.d/gitea.conf" |
|
|
dest: "/etc/fail2ban/filter.d/gitea.conf" |
|
|
# become: yes |
|
|
become: yes |
|
|
# notify: |
|
|
notify: |
|
|
# - Restart fail2ban |
|
|
- Restart fail2ban |
|
|
|
|
|
|
|
|
# - name: gitea | configure | write fail2ban jail config |
|
|
- name: gitea | configure | write fail2ban jail config |
|
|
# template: |
|
|
template: |
|
|
# src: "etc/fail2ban/jail.d/gitea.conf.j2" |
|
|
src: "etc/fail2ban/jail.d/gitea.conf.j2" |
|
|
# dest: "/etc/fail2ban/jail.d/gitea.conf" |
|
|
dest: "/etc/fail2ban/jail.d/gitea.conf" |
|
|
# become: yes |
|
|
become: yes |
|
|
# notify: |
|
|
notify: |
|
|
# - Restart fail2ban |
|
|
- Restart fail2ban |
|
|
|
|
|
|
|
|
- name: gitea | configure | write Gitea logrotate config |
|
|
- name: gitea | configure | write Gitea logrotate config |
|
|
template: |
|
|
template: |
|
|