looks like sudo error, may be

24 views
Skip to first unread message

Kallu Srikanth

unread,
Oct 31, 2018, 10:06:04 PM10/31/18
to Ansible Project
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 

Ankit Vashistha

unread,
Oct 31, 2018, 10:09:40 PM10/31/18
to ansible...@googlegroups.com
I suspect it has something related to the permission mentioned in the output.

--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@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.
For more options, visit https://groups.google.com/d/optout.

Kallu Srikanth

unread,
Oct 31, 2018, 10:26:58 PM10/31/18
to ansible...@googlegroups.com
I can become root but not oracle 

Reply all
Reply to author
Forward
0 new messages