summaryrefslogtreecommitdiffstats
path: root/test/schemas/test/playbooks/tasks/become_method.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/schemas/test/playbooks/tasks/become_method.yml')
-rw-r--r--test/schemas/test/playbooks/tasks/become_method.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/schemas/test/playbooks/tasks/become_method.yml b/test/schemas/test/playbooks/tasks/become_method.yml
new file mode 100644
index 0000000..9d63a76
--- /dev/null
+++ b/test/schemas/test/playbooks/tasks/become_method.yml
@@ -0,0 +1,7 @@
+- command: echo 123
+ become_method: sudo
+
+- command: echo 123
+ vars:
+ sudo_var: doo
+ become_method: "{{ sudo_var }}" # templating is ok