Ansible Galaxy Role: Configuration for installing Gitea on Ubuntu instances.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.0 KiB

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