--- - hosts: all vars_prompt: - name: path prompt: "Enter path to script" private: no tasks: - name: Execute script script: "{{ path }}"