7fbacf920d
* Remove misleading statement passwords must be same Since 2.4 Ansible has supported multiple vault passwords: <https://docs.ansible.com/ansible/latest/user_guide/vault.html#multiple-vault-passwords> Meaning lines like the following are misleading: > The password used with vault currently must be the same for all files you wish > to use together at the same time. -- `docs/docsite/rst/user_guide/vault.rst` To demonstrate this with Ansible 2.7, save the following as `example.yaml`: ``` - name: Display output from two vaults with different passwords hosts: localhost connection: local vars_files: [one.yaml, two.yaml] tasks: - name: View secret from one.yaml vault debug: { var: one } - name: View secret from two.yaml vault debug: { var: two } ``` Then run the three following commands choosing two different passwords: ``` $ echo 'one: 1' | ansible-vault encrypt --vault-id id1@prompt --output=one.yaml $ echo 'two: 2' | ansible-vault encrypt --vault-id id2@prompt --output=two.yaml $ ansible-playbook --vault-id id1@prompt --vault-id id2@prompt example.yaml ``` `ansible-vault` stores an ID in plain text in the vault file. * Remove note about default in Ansible 2.1 As requested by gundalow in https://github.com/ansible/ansible/pull/49798 |
||
---|---|---|
.. | ||
shared_snippets | ||
become.rst | ||
command_line_tools.rst | ||
index.rst | ||
intro.rst | ||
intro_adhoc.rst | ||
intro_bsd.rst | ||
intro_dynamic_inventory.rst | ||
intro_getting_started.rst | ||
intro_inventory.rst | ||
intro_patterns.rst | ||
intro_windows.rst | ||
modules.rst | ||
modules_intro.rst | ||
modules_support.rst | ||
playbook_pathing.rst | ||
playbooks.rst | ||
playbooks_advanced_syntax.rst | ||
playbooks_async.rst | ||
playbooks_best_practices.rst | ||
playbooks_blocks.rst | ||
playbooks_checkmode.rst | ||
playbooks_conditionals.rst | ||
playbooks_debugger.rst | ||
playbooks_delegation.rst | ||
playbooks_environment.rst | ||
playbooks_error_handling.rst | ||
playbooks_filters.rst | ||
playbooks_filters_ipaddr.rst | ||
playbooks_intro.rst | ||
playbooks_lookups.rst | ||
playbooks_loops.rst | ||
playbooks_module_defaults.rst | ||
playbooks_prompts.rst | ||
playbooks_python_version.rst | ||
playbooks_reuse.rst | ||
playbooks_reuse_includes.rst | ||
playbooks_reuse_roles.rst | ||
playbooks_roles.rst | ||
playbooks_special_topics.rst | ||
playbooks_startnstep.rst | ||
playbooks_strategies.rst | ||
playbooks_tags.rst | ||
playbooks_templating.rst | ||
playbooks_tests.rst | ||
playbooks_variables.rst | ||
playbooks_vault.rst | ||
plugin_filtering_config.rst | ||
quickstart.rst | ||
vault.rst | ||
windows.rst | ||
windows_dsc.rst | ||
windows_faq.rst | ||
windows_setup.rst | ||
windows_usage.rst | ||
windows_winrm.rst |