test: forgjeo
This commit is contained in:
parent
aa92169425
commit
12460c92da
1 changed files with 19 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue