ansible become time out issue

121 views
Skip to first unread message

hzj...@foxmail.com

unread,
Aug 24, 2016, 10:17:30 AM8/24/16
to ansible-project
hello,

    come accross a problem, 
  
    there is this special hosts, i just cannot use ansible to become root user;

 here is the ouput
[root@localhost ~]# ansible host1  -m raw -a 'uname -a' -u admin4A   -b --become-method=su -k -K 
SSH password: 
SU password[defaults to SSH password]: 
10.223.25.101 | FAILED | rc=0 >>
Timeout (32s) waiting for privilege escalation prompt: 


then i login to the remote host, type su command,  the prompt is chinese;
admin4A@vgopserver1:~> su - 
口令: 



  i checked the   ansible/playbook/play_context.py , the new prompt is not in the  SU_PROMPT_LOCALIZATIONS list;

 but it still didnot work after i put the "口令" into the SU_PROMPT_LOCALIZATIONS list;

 any idea?  did i modify the right python file  ? 

when i change the remote host lang to en.US, all things goes well;   but i still need to solve this prompt problem in ansible  ?  any help  
Reply all
Reply to author
Forward
0 new messages