Merge pull request #3007 from jasonk/vsphere_guest-env-vars
Enable env vars for vsphere_guest
This commit is contained in:
commit
d540342984
1 changed files with 12 additions and 3 deletions
|
@ -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=[
|
||||
|
|
Loading…
Reference in a new issue