Re: [ansible-project] Failed to import the required Python library (pexpect)

2020-08-14 Thread nage...@gmail.com
vilege escalation options: > > https://docs.ansible.com/ansible/latest/user_guide/become.html > > > > On Fri, 14 Aug 2020 at 19:57, nage...@gmail.com wrote: > >> Oh sorry, please find the below details >> >> host file >> [root@6683ffa58609

Re: [ansible-project] Failed to import the required Python library (pexpect)

2020-08-14 Thread nage...@gmail.com
14, 2020 at 12:57:30 PM UTC-5 nage...@gmail.com wrote: > Oh sorry, please find the below details > > host file > [root@6683ffa58609 cpc-vcf]# cat hosts.ini > sddc_mgr ansible_user=vcf ansible_password='xx' > ansible_ssh_host=10.47.20.4 > > [root@6683ffa58

Re: [ansible-project] Failed to import the required Python library (pexpect)

2020-08-14 Thread nage...@gmail.com
you're using, and the inventory, and the > ansible configuration. > > On Fri, 14 Aug 2020 at 19:42, nage...@gmail.com wrote: > >> >> Hi team, >> >> i am getting below error, pexpect already installed >> >> he full traceback is: >> Traceback (mo

[ansible-project] Failed to import the required Python library (pexpect)

2020-08-14 Thread nage...@gmail.com
Hi team, i am getting below error, pexpect already installed he full traceback is: Traceback (most recent call last): File "/tmp/ansible_expect_payload_0bz7tQ/__main__.py", line 108, in import pexpect ImportError: No module named pexpect fatal: [sddc_mgr]: FAILED! => { "changed":

Re: [ansible-project] Re: run cmd using password

2020-08-14 Thread nage...@gmail.com
worked thank you On Friday, August 14, 2020 at 8:34:16 AM UTC-5 nage...@gmail.com wrote: > Hi Luca, > > Thank you,let me try that. > > On Friday, August 14, 2020 at 8:13:59 AM UTC-5 lorenze...@gmail.com wrote: > >> On Thu, Aug 13, 2020 at 11:35 PM nage...@gmail.com

Re: [ansible-project] Re: run cmd using password

2020-08-14 Thread nage...@gmail.com
Hi Luca, Thank you,let me try that. On Friday, August 14, 2020 at 8:13:59 AM UTC-5 lorenze...@gmail.com wrote: > On Thu, Aug 13, 2020 at 11:35 PM nage...@gmail.com > wrote: > > > > Hi just modify the file, getting below error > > > > role task : > > >

[ansible-project] Re: run cmd using password

2020-08-14 Thread nage...@gmail.com
Hi team, any help greatly appreciated ? On Thursday, August 13, 2020 at 4:35:44 PM UTC-5 nage...@gmail.com wrote: > Hi just modify the file, getting below error > > role task : > > name: SDDC Health > command: sudo /opt/vmware/sddc-support/sos --health-check >

[ansible-project] Re: run cmd using password

2020-08-13 Thread nage...@gmail.com
13 August 2020 21:24:32 + (0:00:01.683) 0:00:01.889 *** fatal: [sddc_mgr]: FAILED! => {"msg": "Timeout (12s) waiting for privilege escalation prompt: "} On Thursday, August 13, 2020 at 4:08:14 PM UTC-5 nage...@gmail.com wrote: > Hi Team, > &

[ansible-project] run cmd using password

2020-08-13 Thread nage...@gmail.com
Hi Team, i would like to run this cmd with sudo with vcf password how i can run the cmd with vcf user and password ? how i can achieve this ? i am not getting proper answer from the google Playbook: --- - name: sddc_health hosts: sddc_mgr tasks: - name: heleth check command: