alicante-infra/roles/common/tasks/main.yml

43 lines
929 B
YAML

---
- name: Actualizar Sistema
apt:
update_cache: yes
upgrade: dist
environment:
DEBIAN_FRONTEND: noninteractive
- name: Instalar Dependencias
apt:
name:
- curl
- git
- htop
- ufw
- ca-certificates
- gnupg
state: present
- name: Instalar Docker (Oficial)
shell: |
if [ ! -f /usr/bin/docker ]; then
curl -fsSL https://get.docker.com | sh
fi
args:
creates: /usr/bin/docker
- name: Configurar Firewall UFW
shell: |
ufw allow 22/tcp
ufw allow 10000/tcp # Webmin
ufw allow 9000/tcp # Authentik
ufw allow 9443/tcp # Authentik SSL
ufw allow 8080/tcp # Dolibarr
ufw allow 3000/tcp # Teable
ufw allow 8081/tcp # Activepieces
ufw allow 6875/tcp # Bookstack
ufw allow 3001/tcp # Metabase
ufw allow 7575/tcp # Homarr
ufw allow 5001/tcp # Dockge
ufw --force enable
ignore_errors: yes