update + docker
This commit is contained in:
37
update_system.yaml
Normal file
37
update_system.yaml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user