Fix missing python libraries for Ansible

This commit is contained in:
SysAdmin DCC 2025-12-01 21:29:05 +00:00
parent 77461d1401
commit 8396221a29
1 changed files with 14 additions and 11 deletions

View File

@ -6,7 +6,7 @@
environment: environment:
DEBIAN_FRONTEND: noninteractive DEBIAN_FRONTEND: noninteractive
- name: Instalar Dependencias - name: Instalar Dependencias Base y Python
apt: apt:
name: name:
- curl - curl
@ -15,6 +15,9 @@
- ufw - ufw
- ca-certificates - ca-certificates
- gnupg - gnupg
- python3-pip
- python3-requests # <--- ESTA ES LA CLAVE
- python3-docker # <--- Y ESTA TAMBIÉN
state: present state: present
- name: Instalar Docker (Oficial) - name: Instalar Docker (Oficial)
@ -28,15 +31,15 @@
- name: Configurar Firewall UFW - name: Configurar Firewall UFW
shell: | shell: |
ufw allow 22/tcp ufw allow 22/tcp
ufw allow 10000/tcp # Webmin ufw allow 10000/tcp
ufw allow 9000/tcp # Authentik ufw allow 9000/tcp
ufw allow 9443/tcp # Authentik SSL ufw allow 9443/tcp
ufw allow 8080/tcp # Dolibarr ufw allow 8080/tcp
ufw allow 3000/tcp # Teable ufw allow 3000/tcp
ufw allow 8081/tcp # Activepieces ufw allow 8081/tcp
ufw allow 6875/tcp # Bookstack ufw allow 6875/tcp
ufw allow 3001/tcp # Metabase ufw allow 3001/tcp
ufw allow 7575/tcp # Homarr ufw allow 7575/tcp
ufw allow 5001/tcp # Dockge ufw allow 5001/tcp
ufw --force enable ufw --force enable
ignore_errors: yes ignore_errors: yes