Added new variable
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user