added devzat chat jail

This commit is contained in:
2024-12-12 18:47:43 +01:00
parent 4048b8fd92
commit c7b89345bf
11 changed files with 79 additions and 40 deletions

11
roles/server/files/hosts Normal file
View File

@@ -0,0 +1,11 @@
::1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain
# https://danwin1210.de/github-ipv6-proxy.php
2a01:4f8:c010:d56::2 github.com
2a01:4f8:c010:d56::3 api.github.com
2a01:4f8:c010:d56::4 codeload.github.com
2a01:4f8:c010:d56::5 objects.githubusercontent.com
2a01:4f8:c010:d56::6 ghcr.io
2a01:4f8:c010:d56::7 pkg.github.com npm.pkg.github.com maven.pkg.github.com nuget.pkg.github.com rubygems.pkg.github.com
2a01:4f8:c010:d56::8 uploads.github.com

View File

@@ -4,6 +4,10 @@
state: present
name: "{{ packages }}"
- name: Create program symlinks
shell: "ln -sf /usr/local/bin/{{ item.program }} /usr/local/bin/{{ item.link }}"
loop: "{{ versions }}"
# FIXME: remove the symlink in the next release snapshot
- name: Remove old home sym link
shell: |
@@ -90,6 +94,14 @@
group: wheel
mode: '0644'
- name: Install /etc/hosts file
copy:
src: hosts
dest: /etc/hosts
owner: root
group: wheel
mode: '0644'
- name: Install jlogin
copy:
src: jlogin