upgrade_esxi_vib.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: dunn-esxi:!*dc-esxihost-01* | |
vars: | |
#Set the source VIB file to copy, Source Location, and Destination Location | |
src_vib: NVIDIA-VMware-450.55-1OEM.670.0.0.8169922.x86_64.vib | |
src_location: ~/Downloads/NVIDIA-GRID-vSphere-6.7-450.55-450.51.05-451.48/ | |
dest_location: /tmp/ | |
tasks: | |
- name: Enter Maintenance Mode | |
register: status | |
vmware_maintenancemode: | |
hostname: "{{ vcenter_hostname }}" | |
username: "{{ vcenter_username }}" | |
password: "{{ vcenter_password }}" | |
esxi_hostname: "{{ inventory_hostname }}" | |
vsan: ensureObjectAccessibility | |
evacuate: yes | |
validate_certs: no | |
timeout: 3600 | |
state: present | |
delegate_to: localhost | |
- debug: var=status.msg | |
- name: Copy {{ src_vib }} to ESXI Host | |
copy: | |
src="{{ src_location }}{{ src_vib }}" | |
dest="{{ dest_location }}{{src_vib}}" | |
- name: Search for existing VIB installation | |
shell: esxcli software vib list | grep NVIDIA | |
register: vibs | |
changed_when: false | |
ignore_errors: yes | |
- debug: var=vibs.stdout | |
- name: Run a removal if VIB is already installed | |
shell: esxcli software vib remove -n NVIDIA-VMware_ESXi_6.7_Host_Driver | |
when: "'NVIDIA' in vibs.stdout" | |
- name: Install it | |
shell: esxcli software vib install -v /tmp/NVIDIA-VMware-450.55-1OEM.670.0.0.8169922.x86_64.vib | |
- name: Confirm VIB is installed | |
shell: esxcli software vib list | grep NVIDIA | |
register: vibs | |
changed_when: false | |
ignore_errors: yes | |
- debug: var=vibs.stdout | |
- name: Exit Maintenance Mode | |
vmware_maintenancemode: | |
register: mainteance | |
hostname: "{{ vcenter_hostname }}" | |
username: "{{ vcenter_username }}" | |
password: "{{ vcenter_password }}" | |
esxi_hostname: "{{ inventory_hostname }}" | |
vsan: ensureObjectAccessibility | |
evacuate: no | |
validate_certs: no | |
timeout: 3600 | |
state: absent | |
delegate_to: localhost | |
- debug: var=mainteance.status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
forgive me i understand how set vmware up how install domains, to it, but i dont understand what i need to run this on vmware 6.0 in short
what do i need do to insurt this in vmware what dir what commands must be run to make it work , what in scrip must be chnage if anything,
to make it work , i dont have vcenter i must push this on vmware it self any way u help, i can conntect using winscp so i can run commands and upload files
also i have tape drive hp lto4 i cant get to work, no os can see it, i pass throw the raid card but os dose not see tape drive on it,
any way u help with this, and last thing i notace some rog hacker sending commands to my domain, is there scrip can be made to decteck commands and del the commands befor it gets to os, i am to running ipfire, but i abeen unable to stop commands being sent . if at all possable is there way stop the commnads on ipfire or my work station windows 7. thanks