summaryrefslogtreecommitdiff
path: root/examples/remote_user.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/remote_user.yaml')
-rw-r--r--examples/remote_user.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/remote_user.yaml b/examples/remote_user.yaml
new file mode 100644
index 0000000..ffda478
--- /dev/null
+++ b/examples/remote_user.yaml
@@ -0,0 +1,9 @@
+vars:
+ remote_user: other
+
+tasks:
+ - name: listar directorio de root desde el usuario "other" que tiene sudo
+ module: run
+ args:
+ command: "ls -l /root"
+ become: true