Compare commits

...

3 commits

2 changed files with 6 additions and 2 deletions

View file

@ -19,6 +19,7 @@
- name: '[INSTALL] - Check if forgejo is installed'
shell:
cmd: '{{ forgejo_bindir }}/forgejo --version -c {{ forgejo_confdir }}'
ignore_errors: 'true'
register: forgejo_is_installed
- name: '[UPGRADE] - Check forgejo health'
@ -26,6 +27,7 @@
cmd: '{{ forgejo_bindir }}/forgejo doctor check --all -c {{ forgejo_confdir }}'
become: 'yes'
become_user: '{{ forgejo_user }}'
ignore_errors: 'true'
register: forgejo_health
- name: '[UPGRADE] - Restart forgejo'
@ -92,6 +94,7 @@
cmd: '{{ forgejo_bindir }}/forgejo doctor check --all -c {{ forgejo_confdir }}'
become: 'yes'
become_user: '{{ forgejo_user }}'
ignore_errors: 'true'
register: forgejo_health
- name: '[UPGRADE] - Stop forgejo. Something is wrong'

View file

@ -7,6 +7,9 @@
include_tasks: configure.yml
tags: config
- name: "[FORGEJO] - systemd"
include_tasks: systemd.yml
- name: "[FORGEJO] - install or upgrade"
include_tasks: install_upgrade.yml
@ -15,5 +18,3 @@
when: forgejo_custom_themes is defined
tags: theme
- name: "[FORGEJO] - systemd"
include_tasks: systemd.yml