Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: change power state of vmware vm
- hosts: 127.0.0.1
- connection: local
- tasks:
- - name: load vsphere credentials
- include_vars: vsphere.yml
- - name: change powerstate
- vsphere_guest:
- username: "{{ vsphere.user }}"
- password: "{{ vsphere.pass }}"
- vcenter_hostname: "{{ vcenter }}"
- validate_certs: False
- guest: "{{ guest }}"
- state: "{{ state }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement