From 12460c92daced6e03d382f7b963158df2dfb5048 Mon Sep 17 00:00:00 2001 From: kekskurse Date: Sat, 5 Aug 2023 20:15:52 +0200 Subject: [PATCH] test: forgjeo --- debian12-forgejo/playbook.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/debian12-forgejo/playbook.yml b/debian12-forgejo/playbook.yml index 2c8906a..28e87ca 100644 --- a/debian12-forgejo/playbook.yml +++ b/debian12-forgejo/playbook.yml @@ -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: