update + docker

This commit is contained in:
2025-02-27 19:10:49 +01:00
commit 1589f2ecf5
2 changed files with 98 additions and 0 deletions

37
update_system.yaml Normal file
View File

@@ -0,0 +1,37 @@
---
- name: Konfiguracja systemu i UFW dla SSH
hosts: localhost
become: yes
tasks:
- name: Aktualizacja systemu
apt:
update_cache: yes
upgrade: dist
- name: Instalacja podstawowych narzędzi
apt:
name:
- curl
- wget
- vim
- git
- ufw
- unzip
- htop
- net-tools
- ca-certificates
- software-properties-common
state: present
- name: Konfiguracja UFW (Zapora sieciowa) dla SSH
ufw:
rule: allow
port: ssh
proto: tcp
- name: Uruchomienie UFW
ufw:
state: enabled
policy: deny