Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VMware: vmware_vm_inventory using vaulted config #53048

Merged
merged 2 commits into from
Mar 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 23 additions & 1 deletion docs/docsite/rst/vmware/vmware_inventory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,27 @@ Here's an example of a valid inventory file:

Executing ``ansible-inventory --list -i <filename>.vmware.yml`` will create a list of VMware instances that are ready to be configured using Ansible.

Using vaulted configuration files
=================================

Since the inventory configuration file contains vCenter password in plain text, a security risk, you may want to
encrypt your entire inventory configuration file.

You can encrypt a valid inventory configuration file as follows:

.. code-block:: bash

$ ansible-vault encrypt <filename>.vmware.yml
New Vault password:
Confirm New Vault password:
Encryption successful

And you can use this vaulted inventory configuration file using:

.. code-block:: bash

$ ansible-inventory -i filename.vmware.yml --list --vault-password-file=/path/to/vault_password_file


.. seealso::

Expand All @@ -48,4 +69,5 @@ Executing ``ansible-inventory --list -i <filename>.vmware.yml`` will create a li
The issue tracker for the pyVmomi project
:ref:`working_with_playbooks`
An introduction to playbooks

:ref:`playbooks_vault`
Using Vault in playbooks