On 15.03.2019 06:45, hitesh shaha wrote: > we have developed playbook for oracle backup, but we are having big > roadblock to use privilege escalation. > we are using become_user mentod for privilege escalation but in our env for > security reason unix team has added script which prompts ticket number > after switching user. > so i can handle this in become_user method.
Ansible will not handle this, Ansible is using sshpass and the string sshpass is looking for is hardcoded. > existing setput in my env. > > login to redhat server using my person id > > username:hitesh > .. > ..connected. > > linux>dzdo su - oracle > Please enter ticket number: INC00000 One way to solve it would be to use the expect module. -- Kai Stian Olstad -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b0a07e4b-bce8-529b-1f56-48c95583728b%40olstad.com. For more options, visit https://groups.google.com/d/optout.
