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
This commit is contained in:
parent
44b2859338
commit
99a160f9c7
1 changed files with 3 additions and 0 deletions
|
@ -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::
|
||||
|
|
Loading…
Reference in a new issue