Added VMWare tools to the Ansible Toolkit
This commit is contained in:
parent
eefc8f99e2
commit
1650f9d363
@ -15,7 +15,7 @@
|
|||||||
check_mode: yes
|
check_mode: yes
|
||||||
register: upgradable_packages
|
register: upgradable_packages
|
||||||
|
|
||||||
- name: Print uptime information
|
- name: Print list of upgradable packages
|
||||||
debug:
|
debug:
|
||||||
var: upgradable_packages.stdout_lines
|
var: upgradable_packages.stdout_lines
|
||||||
|
|
||||||
|
|||||||
18
vmware/get_vcenter_information.yml
Normal file
18
vmware/get_vcenter_information.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
- name: Get vCenter information and print to CLI
|
||||||
|
hosts: all
|
||||||
|
roles:
|
||||||
|
- common
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Collect configuration info
|
||||||
|
community.vmware.vmware_vcenter_settings_info:
|
||||||
|
hostname: "{{ vmware_vcenter_ip }}"
|
||||||
|
username: "{{ vmware_user }}"
|
||||||
|
password: "{{ vmware_vcenter_ip }}"
|
||||||
|
register: vcenter_configuration_info
|
||||||
|
|
||||||
|
- name: Print collected info
|
||||||
|
debug:
|
||||||
|
var: vcenter_configuration_info
|
||||||
3
vmware/lab_inventory.yml
Normal file
3
vmware/lab_inventory.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
all:
|
||||||
|
hosts:
|
||||||
|
10.11.11.50:
|
||||||
10
vmware/roles/common/vars/main.yml
Normal file
10
vmware/roles/common/vars/main.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
62396336666236313764353165373866666134323732306463383932343762643134306437363065
|
||||||
|
3437366465623261363633666139653364653337343039350a343035343062343039663731353337
|
||||||
|
66323864373437666163333939353433356333353938656662653238393662623535376530316238
|
||||||
|
6539626433643233310a363037616233353363633966316131633833663264633137623530376331
|
||||||
|
30373037373864653730386230616235353138306164343435373735643837663639646664663737
|
||||||
|
39363933383334306136636438633331666237643831656138626639313136383238343833663634
|
||||||
|
31636633663134306539393663383139643436363232303639613365343335636364626264643361
|
||||||
|
38323137353332316235633235643333636638326262303263356437636531666434363038313563
|
||||||
|
30313662333136346336353938393864353833376234626533383330633434333030
|
||||||
Loading…
Reference in New Issue
Block a user