- hosts: localhost gather_facts: false vars_prompt: - name: prompted_value prompt: Enter a value tasks: - name: Print the prompted value debug: msg: "The value is: {{ prompted_value }}" # vim: set ft=yaml sw=2 et: