Browse Source

cleanup

master
lavenderguiar 3 years ago
parent
commit
0a28ddd7c7
  1. 68
      tasks/configure.yml
  2. 14
      tasks/main.yml

68
tasks/configure.yml

@ -1,41 +1,41 @@
---
# - 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
- 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
# - 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
- 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
# - 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
- 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
# - 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
- 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
- name: gitea | configure | write Gitea logrotate config
template:

14
tasks/main.yml

@ -1,10 +1,10 @@
---
# - include_tasks: install.yml
- include_tasks: install.yml
- include_tasks: configure.yml
# - name: gitea | Ensure gitea is running and enabled on boot.
# systemd:
# name: gitea
# enabled: yes
# state: started
# become: yes
- name: gitea | Ensure gitea is running and enabled on boot.
systemd:
name: gitea
enabled: yes
state: started
become: yes
Loading…
Cancel
Save