Skip to content

Commit

Permalink
Improve gitea
Browse files Browse the repository at this point in the history
  • Loading branch information
DO1JLR committed Sep 22, 2024
1 parent 411a97c commit a18111a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
- name: "Restart gitea"
become: true
listen: "systemctl restart gitea"
ansible.builtin.service:
ansible.builtin.systemd_service:
name: gitea
state: restarted
when: ansible_service_mgr == "systemd"

- name: "Reload systemd"
become: true
ansible.builtin.systemd:
ansible.builtin.systemd_service:
daemon_reload: true
when: ansible_service_mgr == "systemd"

- name: "Systemctl restart fail2ban"
become: true
ansible.builtin.systemd:
ansible.builtin.systemd_service:
name: fail2ban
state: restarted
when: ansible_service_mgr == "systemd"
4 changes: 2 additions & 2 deletions tasks/backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
block:
- name: Stopping gitea before upgrade
become: true
ansible.builtin.systemd:
ansible.builtin.systemd_service:
name: 'gitea.service'
state: 'stopped'
when: ansible_service_mgr == "systemd"
Expand All @@ -33,7 +33,7 @@
rescue:
- name: Starting gitea because backup failed
become: true
ansible.builtin.systemd:
ansible.builtin.systemd_service:
name: 'gitea.service'
state: 'started'
when: ansible_service_mgr == "systemd"
Expand Down
2 changes: 1 addition & 1 deletion tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

- name: "Service gitea"
become: true
ansible.builtin.systemd:
ansible.builtin.systemd_service:
name: gitea
state: started
enabled: true
Expand Down
2 changes: 1 addition & 1 deletion tasks/install_systemd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@

- name: "Reload systemd"
become: true
ansible.builtin.systemd:
ansible.builtin.systemd_service:
daemon_reload: true
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ transfer_custom_footer:
- 'files/gitea_footer/extra_links_footer.tmpl'
- 'files/extra_links_footer.tmpl'

playbook_version_number: 61
playbook_version_number: 62
playbook_version_path: 'do1jlr.gitea.version'

0 comments on commit a18111a

Please sign in to comment.