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:
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:
Hi just modify the file, getting below error
role task :
name: SDDC Health
command: sudo /opt/vmware/sddc-support/sos --health-check
register: find_output
Hi team,
any help greatly appreciated ?
Hello, remove become_method: su, and leave the default value, which is
sudo. This will call your command with sudo
If you want to specify a different password for sudo, use the
variable: ansible_become_password.
docs here: https://docs.ansible.com/ansible/latest/user_guide/become.html
Luca
Hi Luca,
Thank you,let me try that.
worked thank you