summaryrefslogtreecommitdiff
path: root/examples/user_test.yaml
diff options
context:
space:
mode:
authorluisgulo <luisgulo@gmail.com>2025-10-24 18:01:10 +0200
committerluisgulo <luisgulo@gmail.com>2025-10-24 18:01:10 +0200
commit533e79ba959143f0459431a486bfb85c56c72ddc (patch)
tree91974de1bbbdc4c51c76ed591fc5c6e02a3342b6 /examples/user_test.yaml
parent45019c81cfd0fc1d18dce18cdfd5f127c6d61073 (diff)
Releasing code version 1.8.0
Diffstat (limited to 'examples/user_test.yaml')
-rw-r--r--examples/user_test.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/user_test.yaml b/examples/user_test.yaml
new file mode 100644
index 0000000..77d278e
--- /dev/null
+++ b/examples/user_test.yaml
@@ -0,0 +1,32 @@
+hosts: localhost
+parallelism: false
+tasks:
+ - name: Crear usuario de servicio
+ module: users
+ args:
+ state: create
+ username: servicio
+ home: /home/servicio
+ groups: docker
+ shell: /usr/sbin/nologin
+ become: true
+
+ - name: Modificar shell de servicio
+ module: users
+ args:
+ state: modify
+ username: servicio
+ home: /home/servicio
+ groups: docker
+ shell: /bin/bash
+ become: true
+
+ - name: Eliminar usuario de servicio
+ module: users
+ args:
+ state: absent
+ username: servicio
+ home: /home/servicio
+ groups: docker
+ shell: /bin/bash
+ become: true