27 lines
549 B
YAML
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 }}"
|