test: forgjeo

This commit is contained in:
Kekskurse 2023-08-05 20:15:52 +02:00
parent aa92169425
commit 12460c92da
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4

View file

@ -11,7 +11,10 @@
ansible.builtin.service:
name: "forgejo"
state: restarted
- name: Restart nginx
ansible.builtin.service:
name: "nginx"
state: restarted
tasks:
- name: Install a list of packages
ansible.builtin.apt:
@ -76,6 +79,21 @@
src: forgejo.conf
dest: /etc/nginx/sites-enabled/forgejo.conf
when: not stat_result.stat.exists
notify:
- Restart nginx
- name: Allow all access to tcp port 80
community.general.ufw:
rule: allow
port: '80'
proto: tcp
- name: Allow all access to tcp port 443
community.general.ufw:
rule: allow
port: '443'
proto: tcp
- name: NGINX Check that the forgejo.conf exists
stat: