Added new variable
This commit is contained in:
@@ -5,6 +5,9 @@
|
|||||||
- name: script
|
- name: script
|
||||||
prompt: "Enter the script to be run"
|
prompt: "Enter the script to be run"
|
||||||
private: no
|
private: no
|
||||||
|
- name: argument
|
||||||
|
prompt: "Enter the argument"
|
||||||
|
private: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: Fetch script
|
- name: Fetch script
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
@@ -13,5 +16,5 @@
|
|||||||
register: sc
|
register: sc
|
||||||
- name: Run script
|
- name: Run script
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: bash -s
|
cmd: "{{ argument }}"
|
||||||
stdin: "{{ sc.content }}"
|
stdin: "{{ sc.content }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user