I can become root but not oracle On Wed, 31 Oct 2018 at 21:09, Ankit Vashistha <ankitvashis...@gmail.com> wrote:
> I suspect it has something related to the permission mentioned in the > output. > > On Thu, Nov 1, 2018, 7:36 AM 'Kallu Srikanth' via Ansible Project < > ansible-project@googlegroups.com> wrote: > >> Playbook: >> >> --- >> - hosts: patch_group >> user: dpiesa >> become: yes >> become_user: root >> become_method: sudo >> roles: >> - acx_oracle_stopdb >> >> Role : >> >> --- # Stop oracle db >> >> name: stopping Oracle database >> debug: >> msg: "Stopping database on host {{ ansible_fqdn }}" >> Test user oracle >> #- block: >> >> name: Test Perms >> command: mv /home/oracle/test /home/oracle/test_ok >> become: yes >> become_user: oracle >> Error >> >> TASK [acx_oracle_stopdb : Test Perms] >> *************************************************************************** >> fatal: [dscadev0454.mpsdev.net]: FAILED! => {"msg": "Timeout (12s) >> waiting for privilege escalation prompt: >> +-----------------------------------------------------------------------------+\r\n| >> Shared Account Shell Monitor |\r\n| |\r\n| This shell session is being >> monitored, and appropriate |\r\n| personnel have been notified of this >> invocation. You are |\r\n| responsible for all activity logged under this >> session. |\r\n| Do NOT leave this terminal unattended. You are encouraged >> |\r\n| to use adhoc sudo commands instead of a shell for casual |\r\n| use. >> Excessive "trivial" use of the shell will be addressed. |\r\n| >> |\r\n+-----------------------------------------------------------------------------+\r\n"} >> >> >> Can any body help please >> >> -- >> 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 ansible-project+unsubscr...@googlegroups.com. >> To post to this group, send email to ansible-project@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/0032a133-108b-4296-b332-653953ba6efd%40googlegroups.com >> <https://groups.google.com/d/msgid/ansible-project/0032a133-108b-4296-b332-653953ba6efd%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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 ansible-project+unsubscr...@googlegroups.com. > To post to this group, send email to ansible-project@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CACecUhu%2B5P%3D%2BnUgNabVi%2BJjfBgYK9F9vi6vcbK52aXwpn%2Bp1Qg%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CACecUhu%2B5P%3D%2BnUgNabVi%2BJjfBgYK9F9vi6vcbK52aXwpn%2Bp1Qg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BV0uEwsk%3DQ65oJ1Vy5A4MTdYxo7ZHrkzuYKTz9qhibwyYMFkQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.