fix: odstranit firewall roli + pridat btop, mc, tree do base packages
Firewall (UFW) neni pozadovan:
- smazana cela role roles/firewall/
- odstraneny reference z prepare-new-server.yml
- pridana poznamka v group_vars/all.yml.example
- doporuceni: firewall resit externe (Cloudflare Tunnel, security group)
Base packages - pridany chybejici utility:
+ btop (system monitor - lepsi nez htop)
+ mc (Midnight Commander - textovy file manager)
+ tree (struktura adresaru v terminalu)
Ponechany: curl, wget, git, vim, htop, ca-certificates, gnupg,
lsb-release, apt-transport-https, bash-completion,
software-properties-common, unzip, zip, rsync, net-tools
This commit is contained in:
@@ -11,11 +11,16 @@ deploy_groups:
|
||||
|
||||
timezone: Europe/Prague
|
||||
|
||||
# Balíky co se instalují vždy
|
||||
# Zakladni baliky co se instaluji vzdy
|
||||
base_packages:
|
||||
- curl
|
||||
- wget
|
||||
- git
|
||||
- unzip
|
||||
- rsync
|
||||
- tree
|
||||
- btop
|
||||
- mc
|
||||
- vim
|
||||
- htop
|
||||
- ca-certificates
|
||||
@@ -24,7 +29,5 @@ base_packages:
|
||||
- apt-transport-https
|
||||
- bash-completion
|
||||
- software-properties-common
|
||||
- unzip
|
||||
- zip
|
||||
- rsync
|
||||
- net-tools
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
# Proměnné pro firewall roli
|
||||
ssh_port: 22
|
||||
# Dalsi porty co chces povolit (pro servery)
|
||||
allowed_ports:
|
||||
- { port: 80, proto: tcp, comment: "HTTP" }
|
||||
- { port: 443, proto: tcp, comment: "HTTPS" }
|
||||
- { port: "{{ ssh_port }}", proto: tcp, comment: "SSH" }
|
||||
@@ -1,32 +0,0 @@
|
||||
---
|
||||
- name: Nainstaluj UFW
|
||||
ansible.builtin.apt:
|
||||
name: ufw
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: Reset UFW na default
|
||||
community.general.ufw:
|
||||
state: reset
|
||||
|
||||
- name: UFW default - deny incoming
|
||||
community.general.ufw:
|
||||
direction: incoming
|
||||
policy: deny
|
||||
|
||||
- name: UFW default - allow outgoing
|
||||
community.general.ufw:
|
||||
direction: outgoing
|
||||
policy: allow
|
||||
|
||||
- name: Povol porty pres UFW
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
port: "{{ item.port }}"
|
||||
proto: "{{ item.proto }}"
|
||||
comment: "{{ item.comment }}"
|
||||
loop: "{{ allowed_ports }}"
|
||||
|
||||
- name: Aktivuj UFW
|
||||
community.general.ufw:
|
||||
state: enabled
|
||||
Reference in New Issue
Block a user