Added become_method become_user

This commit is contained in:
2025-11-18 10:07:07 +01:00
parent 6627c9d181
commit c3065341f4
2 changed files with 21 additions and 0 deletions

9
training/become_user.yml Normal file
View File

@@ -0,0 +1,9 @@
- name: ejecutar tareas con un usuario especifico
hosts: all
become: yes
become_user: postgres
tasks:
- name: Crear base de datos
postgresql_db:
name: mi_base_de_datos
state: present