From 56cb3a8690e7391d5ad1169cd889757e789d0edc Mon Sep 17 00:00:00 2001 From: Akshun Date: Mon, 20 Nov 2023 20:16:03 +0530 Subject: [PATCH] Playbook to run a local script --- run-local-script.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 run-local-script.yml diff --git a/run-local-script.yml b/run-local-script.yml new file mode 100644 index 0000000..023fe22 --- /dev/null +++ b/run-local-script.yml @@ -0,0 +1,9 @@ +--- +- hosts: all + vars_prompt: + - name: path + prompt: "Enter path to script" + private: no + tasks: + - name: Execute script + script: "{{ path }}"