Merge pull request #3007 from jasonk/vsphere_guest-env-vars

Enable env vars for vsphere_guest
This commit is contained in:
Brian Coca 2016-02-23 10:52:10 -05:00
commit d540342984

View file

@ -1607,9 +1607,18 @@ def main():
module = AnsibleModule(
argument_spec=dict(
vcenter_hostname=dict(required=True, type='str'),
username=dict(required=True, type='str'),
password=dict(required=True, type='str', no_log=True),
vcenter_hostname=dict(
type='str',
default=os.environ['VMWARE_HOST']
),
username=dict(
type='str',
default=os.environ['VMWARE_USER']
),
password=dict(
type='str', no_log=True,
default=os.environ['VMWARE_PASSWORD']
),
state=dict(
required=False,
choices=[