You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible
Dag Wieers 4e9a970616 Add an only_if option to vars_prompt to make prompts conditional
Sometimes you may want to allow variables through host_vars or inventory, but prompt for a value if it is not set or if the value does not conform to something specific. This option allows you to specify when you want to offer a prompt.

This patch also moves check_conditional to utils, and adds an is_unset() function which is nicer to read:

    only_if: "not is_set('${var}')"

vs

    only_if: "is_unset('${var}')"
13 years ago
..
callback_plugins Add __init__'s to git 14 years ago
inventory Merge pull request #1024 from tima/groups-pb 14 years ago
playbook Add an only_if option to vars_prompt to make prompts conditional 13 years ago
runner Add an only_if option to vars_prompt to make prompts conditional 13 years ago
__init__.py Release version bump 14 years ago
callbacks.py Modular server-side actions (squash merge) 14 years ago
color.py Check for terminal capabilities if curses is available 14 years ago
constants.py Add support for ./ansible.cfg file 14 years ago
errors.py Add 'polite' YAML syntax validation and hinting. Closes #798 14 years ago
module_common.py [Issue #1075] Fixing setup module fails if PATH is not set on target host 13 years ago
utils.py Add an only_if option to vars_prompt to make prompts conditional 13 years ago