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 - 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:

14
tasks/main.yml

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