summaryrefslogtreecommitdiffstats
path: root/docs/docsite/rst/scenario_guides/vmware_rest_scenarios/authentication.rst
blob: 4f09cbe10126b6aad7da11bfd743e0ed9d8e8e21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.. _vmware_rest_authentication:

*******************************************
How to configure the vmware_rest collection
*******************************************

.. contents::
  :local:


Introduction
============

The vcenter_rest modules need to be authenticated. There are two different

Environment variables
=====================

.. note::
    This solution requires that you call the modules from the local machine.

You need to export some environment variables in your shell before you call the modules.

.. code-block:: shell

    $ export VMWARE_HOST=vcenter.test
    $ export VMWARE_USER=myvcenter-user
    $ export VMWARE_password=mypassword
    $ ansible-playbook my-playbook.yaml

Module parameters
=================

All the vcenter_rest modules accept the following arguments:

- ``vcenter_hostname``
- ``vcenter_username``
- ``vcenter_password``


Ignore SSL certificate error
============================

It's common to run a test environment without a proper SSL certificate configuration.

To ignore the SSL error, you can use the ``vcenter_validate_certs: no`` argument or
``export VMWARE_VALIDATE_CERTS=no`` to set the environment variable.