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
1 changed files with 19 additions and 1 deletions

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: