Training from 20250617

This commit is contained in:
Guillem Hernandez Sola
2025-06-17 13:51:26 +02:00
parent b40e420fbf
commit 5620e1f4dc
14 changed files with 201 additions and 1 deletions

18
training/loops.yml Normal file
View File

@@ -0,0 +1,18 @@
- name: Prueba de multiples usuarios
hosts: all
become: yes
tasks:
- name: Instalar el paquete 'python3-passlib'
apt:
name: python3-passlib
state: present
- name: Crear múltiples usuarios con contraseñas
user:
name: "{{ item }}"
password: "{{ 'password' | password_hash('sha512') }}"
state: present
with_items:
- user1
- user2
- user3