Added new variable

This commit is contained in:
2023-11-26 19:59:13 +05:30
parent 38e596195c
commit 8767eadabb

View File

@@ -5,6 +5,9 @@
- name: script
prompt: "Enter the script to be run"
private: no
- name: argument
prompt: "Enter the argument"
private: no
tasks:
- name: Fetch script
ansible.builtin.uri:
@@ -13,5 +16,5 @@
register: sc
- name: Run script
ansible.builtin.shell:
cmd: bash -s
cmd: "{{ argument }}"
stdin: "{{ sc.content }}"