Re: [ansible-project] Re: need a playbook to change esxi root pass

2020-10-26 Thread Tony Wong
yes! That did it. Thank you --- - name: "change the root password" hosts: localhost tasks: - name: "change root pass" community.vmware.vmware_local_user_manager: hostname: "myesxhost" username: "root" password: "xx" local_user_name: "root" local

Re: [ansible-project] Re: need a playbook to change esxi root pass

2020-10-25 Thread Dick Visser
I think you need to run this against localhost (i.e. the controlnode) as this is where you have pyvmomi installed. The ESXi host name should go as the argument in the task itself. On Sun, 25 Oct 2020 at 17:51, Tony Wong wrote: > > but I have all the pip /pip3 python packages installed already >

Re: [ansible-project] Re: need a playbook to change esxi root pass

2020-10-25 Thread Tony Wong
but I have all the pip /pip3 python packages installed already there isnt anything I can install on a remote esxi host On Sunday, October 25, 2020 at 7:55:09 AM UTC-7 vinod...@gmail.com wrote: > You need to have pip module to run in target hosts. You might have > installed pip package on local

Re: [ansible-project] Re: need a playbook to change esxi root pass

2020-10-25 Thread vinoth kumar
You need to have pip module to run in target hosts. You might have installed pip package on local host . You can simply run this on localhost . It will work . Make exsi hosts on loop //Vinoth On Sun 25. Oct 2020 at 02:08, Tony Wong wrote: > > > my playbook > > --- > - name: "change the root pas

[ansible-project] Re: need a playbook to change esxi root pass

2020-10-24 Thread Tony Wong
this is error I get now The full traceback is: Traceback (most recent call last): File "/tmp/ansible_community.vmware.vmware_local_user_manager_payload_4mdm01xz/ansible_community.vmware.vmware_local_user_manager_payload.zip/ansible_collections/community/vmware/plugins/module_utils/vmware.py",

[ansible-project] Re: need a playbook to change esxi root pass

2020-10-24 Thread Tony Wong
my playbook --- - name: "change the root password" hosts: all tasks: - name: "change root pass" community.vmware.vmware_local_user_manager: hostname: "{{ inventory_hostname }}" local_user_name: "{{ esx_local_root_user }}" local_user_password: "{{ esx_local_root

[ansible-project] Re: need a playbook to change esxi root pass

2020-10-24 Thread Tony Wong
Need help on this please. my inventory file [esx] esx1 esx2 esx3 -- playbook --- - name: change root esxi password community.vmware.vmware_local_user_manager: hostname: '{{ esx_host }}' username: root password: '{{ esx_root_pass }}' what else do i n