gitea/handlers/main.yml
vincent c37f735708
All checks were successful
continuous-integration/drone/push Build is passing
fix chdir path
2021-07-20 19:47:44 +02:00

27 lines
549 B
YAML

- name: "Restart gitea"
service:
name: gitea
state: restarted
when: ansible_service_mgr == "systemd"
become: yes
- name: "Reload systemd"
systemd:
daemon_reload: true
when: ansible_service_mgr == "systemd"
become: yes
- name: "Restart fail2ban"
service:
name: fail2ban
state: restarted
when: ansible_service_mgr == "systemd"
become: yes
- name: "regenerate keys"
command:
cmd: gitea admin -c /etc/gitea/app.ini regenerate keys
chdir: /var/lib/gitea
become: true
become_user: "{{ gitea_user }}"