From 99a160f9c70b9dfb1d5f8e27b833655d81d3a037 Mon Sep 17 00:00:00 2001 From: John Nelson Date: Wed, 29 Mar 2017 21:14:43 -0600 Subject: [PATCH] Update playbooks_prompts.rst (#22910) * Update playbooks_prompts.rst Clarify prompting only occurs when not in extra_vars * Update playbooks_prompts.rst * Update playbooks_prompts.rst Added non-interactive session clarification. * Update playbooks_prompts.rst --- docs/docsite/rst/playbooks_prompts.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/docsite/rst/playbooks_prompts.rst b/docs/docsite/rst/playbooks_prompts.rst index 606ab0f1f49..eaf6013ccf1 100644 --- a/docs/docsite/rst/playbooks_prompts.rst +++ b/docs/docsite/rst/playbooks_prompts.rst @@ -27,6 +27,9 @@ Here is a most basic example:: - name: "favcolor" prompt: "what is your favorite color?" +.. note:: + Prompts for individual ``vars_prompt`` variables will be skipped for any variable that is already defined through the command line ``--extra-vars`` option, or when running from a non-interactive session (such as cron or Ansible Tower). See :ref:`_passing_variables_on_the_command_line` in the /Variables/ chapter. + If you have a variable that changes infrequently, it might make sense to provide a default value that can be overridden. This can be accomplished using the default argument::