bed2eb36d3
This avoids passing the plaintext raw password into the script as a command-line argument, which shells such as bash and zsh will typically log into a file like ~/bash_history. As a small bonus, this works a LOT more smoothly if the user's password has characters in it that either the shell or Python syntax might like to interpret as metacharacters, like '\' or '"'. getpass.getpass() is part of Python's standard library in all versions between 2.4 and 3.3 at least. |
||
---|---|---|
.. | ||
modules | ||
community.rst | ||
developing.rst | ||
developing_api.rst | ||
developing_inventory.rst | ||
developing_modules.rst | ||
developing_plugins.rst | ||
faq.rst | ||
galaxy.rst | ||
glossary.rst | ||
guide_aws.rst | ||
guide_gce.rst | ||
guide_rax.rst | ||
guide_rolling_upgrade.rst | ||
guide_vagrant.rst | ||
guides.rst | ||
guru.rst | ||
index.rst | ||
intro.rst | ||
intro_adhoc.rst | ||
intro_configuration.rst | ||
intro_dynamic_inventory.rst | ||
intro_getting_started.rst | ||
intro_installation.rst | ||
intro_inventory.rst | ||
intro_patterns.rst | ||
intro_windows.rst | ||
modules.rst | ||
playbooks.rst | ||
playbooks_acceleration.rst | ||
playbooks_async.rst | ||
playbooks_best_practices.rst | ||
playbooks_checkmode.rst | ||
playbooks_conditionals.rst | ||
playbooks_delegation.rst | ||
playbooks_environment.rst | ||
playbooks_error_handling.rst | ||
playbooks_intro.rst | ||
playbooks_lookups.rst | ||
playbooks_loops.rst | ||
playbooks_prompts.rst | ||
playbooks_roles.rst | ||
playbooks_special_topics.rst | ||
playbooks_tags.rst | ||
playbooks_variables.rst | ||
playbooks_vault.rst | ||
quickstart.rst | ||
test_strategies.rst | ||
tower.rst | ||
YAMLSyntax.rst |