Add forgejo role
On alpine, with OIDC auth and a podman runner.
This commit is contained in:
parent
f863d87fbf
commit
af9e30eb3e
5 changed files with 285 additions and 0 deletions
23
roles/forgejo/handlers/main.yml
Normal file
23
roles/forgejo/handlers/main.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
- name: reload nginx
|
||||
service:
|
||||
name: nginx
|
||||
state: reloaded
|
||||
when: '"handler" not in ansible_skip_tags'
|
||||
|
||||
- name: restart forgejo
|
||||
service:
|
||||
name: forgejo
|
||||
state: restarted
|
||||
notify: wait for forgejo
|
||||
when: '"handler" not in ansible_skip_tags'
|
||||
|
||||
- name: restart forgejo-runner
|
||||
service:
|
||||
name: forgejo-runner
|
||||
state: restarted
|
||||
when: '"handler" not in ansible_skip_tags'
|
||||
|
||||
- name: wait for forgejo
|
||||
wait_for:
|
||||
host: localhost
|
||||
port: 3000
|
Loading…
Add table
Add a link
Reference in a new issue