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