add Final Infrastructure Setup

This commit is contained in:
Patryk Hegenberg 2026-03-29 13:45:10 +02:00
commit 7733dde658
174 changed files with 204949 additions and 0 deletions

View file

@ -0,0 +1,4 @@
- name: Restart Proftpd
service:
name: proftpd
state: restarted

View file

@ -0,0 +1,100 @@
---
- name: Install MariaDB server and client
apt:
name:
- mariadb-server
- python3-mysqldb
state: present
- name: Start and activate MariaDB
service:
name: mariadb
state: started
enabled: yes
- name: Erstelle TIXstream Datenbanken
community.mysql.mysql_db:
name: "{{ item }}"
state: present
login_unix_socket: /var/run/mysqld/mysqld.sock
loop:
- transfer_job_manager
- access_manager
become: true
- name: Erstelle DB User 'tixel' (localhost)
community.mysql.mysql_user:
name: tixel
password: tixel
host: "localhost"
priv: "*.*:ALL"
state: present
login_unix_socket: /var/run/mysqld/mysqld.sock
become: true
- name: Erstelle DB User 'tixel' (Any Host)
community.mysql.mysql_user:
name: tixel
password: tixel
host: "%"
priv: "*.*:ALL"
state: present
login_unix_socket: /var/run/mysqld/mysqld.sock
become: true
- name: Install Nginx
apt:
name: nginx
state: present
- name: Start and activate Nginx
service:
name: nginx
state: started
enabled: yes
- name: Install ProFTPD with MySQL Modul
apt:
name:
- proftpd-core
- proftpd-mod-mysql
- proftpd-mod-crypto
state: present
- name: Create FTP Group
group:
name: ftpgroup
state: present
- name: Create FTP User
user:
name: ftpuser
group: ftpgroup
shell: /bin/false
home: /var/www/upload
create_home: yes
- name: Create Upload-Dir
file:
path: /var/www/upload
state: directory
owner: ftpuser
group: ftpgroup
mode: "0775"
- name: Konfiguriere ProFTPD
template:
src: proftpd.conf.j2
dest: /etc/proftpd/proftpd.conf
owner: root
group: root
mode: "0644"
notify: Restart Proftpd
- name: Installiere System-Abhängigkeiten für TIXstream (C++ Binaries)
apt:
name:
- libssh2-1-dev
- libssh2-1
state: present
update_cache: yes