Files
ansible/update_system.yaml
2025-02-27 19:10:49 +01:00

38 lines
693 B
YAML

---
- 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