Linter + Dashboard fixes
This commit is contained in:
parent
e1bf3e1765
commit
abc64144a8
44 changed files with 265 additions and 379 deletions
|
@ -14,14 +14,14 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: reload nginx
|
||||
notify: Reload nginx
|
||||
|
||||
- name: Enable nginx site
|
||||
ansible.builtin.file:
|
||||
src: /etc/nginx/sites-available/forgejo
|
||||
dest: /etc/nginx/sites-enabled/forgejo
|
||||
state: link
|
||||
notify: reload nginx
|
||||
notify: Reload nginx
|
||||
|
||||
- name: Create user
|
||||
ansible.builtin.user:
|
||||
|
@ -38,7 +38,6 @@
|
|||
group: "{{ git_server_user }}"
|
||||
mode: 0755
|
||||
|
||||
|
||||
# TODO: Install initial config
|
||||
|
||||
- name: Install service file
|
||||
|
@ -48,7 +47,7 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: reload forgejo
|
||||
notify: Reload forgejo
|
||||
|
||||
- name: Install update script
|
||||
ansible.builtin.template:
|
||||
|
@ -62,12 +61,12 @@
|
|||
ansible.builtin.command: "{{ git_server_working_dir }}/update.sh"
|
||||
args:
|
||||
creates: "{{ git_server_working_dir }}/forgejo"
|
||||
notify: reload forgejo
|
||||
notify: Reload forgejo
|
||||
|
||||
- name: Enable service
|
||||
ansible.builtin.systemd:
|
||||
name: forgejo
|
||||
enabled: yes
|
||||
enabled: true
|
||||
daemon_reload: true
|
||||
|
||||
- name: Start service
|
||||
|
@ -81,24 +80,6 @@
|
|||
src: cronjob
|
||||
dest: /etc/cron.d/forgejo
|
||||
|
||||
- name: Allow Git SSH, HTTP and HTTPS
|
||||
ansible.builtin.iptables:
|
||||
chain: INPUT
|
||||
protocol: tcp
|
||||
destination_port: "{{ item.port }}"
|
||||
ctstate: NEW
|
||||
jump: ACCEPT
|
||||
ip_version: "{{ item.ip }}"
|
||||
action: insert
|
||||
with_items:
|
||||
- { ip: ipv4, port: 80 }
|
||||
- { ip: ipv4, port: 22 }
|
||||
- { ip: ipv4, port: 443 }
|
||||
- { ip: ipv6, port: 80 }
|
||||
- { ip: ipv6, port: 22 }
|
||||
- { ip: ipv6, port: 443 }
|
||||
notify: persist iptables
|
||||
when: not nft | bool
|
||||
|
||||
- ansible.builtin.debug:
|
||||
msg: If Forgejo has not been setup yet, please do so manually.
|
||||
- name: Debug
|
||||
ansible.builtin.debug:
|
||||
msg: "If Forgejo has not been setup yet, please do so manually."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue