#!/usr/bin/env ansible-playbook
---
- hosts: localhost
# switch between vars and vars_prompt, and I would expect the same output both times
#vars:
# should_echo: True
vars_prompt:
- name: should_echo
default: True
private: no
prompt: "Should I Echo it?"
tasks:
- debug: var=should_echo
- include: echo-task.yml
when: should_echo == True
- name: Echo something
shell: echo "Hi"