Score:0

Ansible sudo su get error "atal: [test1]: FAILED! => {"msg": "Timeout (62s) waiting for privilege escalation prompt: "}"

in flag

I have the below ansible script whre it got failed

- name: Download Java to Latest Version
      become: yes
      become_method: sudo
      become_flags: su
      become_user: root
      shell: |
        cd  /home
        wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" {{javaurl}}
        tar -xzvf ./jdk-*.tar.gz
        rm ./jdk-*.tar.gz

Fatal: [test1]: FAILED! => {"msg": "Timeout (62s) waiting for privilege escalation prompt: "}

but manually I can able to do it

ra@HS-PF1XLASF:/home$ sudo su
root@HS-PF1XLASF:/home#

I had increased the timeut to 80 in ansible.cfg but no hope

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.