Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible failing to become root #4805

Closed
2 tasks
kushaldas opened this issue Sep 12, 2019 · 3 comments
Closed
2 tasks

Ansible failing to become root #4805

kushaldas opened this issue Sep 12, 2019 · 3 comments

Comments

@kushaldas
Copy link
Contributor

Description

./securedrop-admin install is failing on the systems where I already did cron-apt -i -s for rc2 packages.

Steps to Reproduce

  • run securedrop-qa.yml
  • log in to app and mon and then cron-apt -i -s
  • from release/1.0.0 branch run ./securedrop-admin install command

Expected Behavior

Installation should complete.

Actual Behavior

TASK [prepare-servers : Ensure apt has been updated without following redirects] *****************************************************************************
 [WARNING]: raw module does not support the environment keyword

 [WARNING]: raw module does not support the environment keyword

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

@kushaldas
Copy link
Contributor Author

More verbose output of the same steps:

<source.onion> ESTABLISH SSH CONNECTION FOR USER: vagrant
<source.onion> SSH: EXEC ssh -o ControlMaster=auto -o ControlPersist=600s -o ConnectTimeout=60 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=60 -o ControlPath=/home/amnesia/.ansible/cp/2e1d82e6b7 -tt source.onion 'sudo -H -S  -p "[sudo via ansible, key=mridhgqclvngmqubbeoemgisfzmzjzhv] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-mridhgqclvngmqubbeoemgisfzmzjzhv; apt -o Acquire::http::AllowRedirect=false update && apt -o Acquire::http::AllowRedirect=false --only-upgrade -y install apt'"'"''
 [WARNING]: raw module does not support the environment keyword

<journalist.onion> ESTABLISH SSH CONNECTION FOR USER: vagrant
<journalist.onion> SSH: EXEC ssh -o ControlMaster=auto -o ControlPersist=600s -o ConnectTimeout=60 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=60 -o ControlPath=/home/amnesia/.ansible/cp/f580bdffd7 -tt journalist.onion 'sudo -H -S  -p "[sudo via ansible, key=jyzyxcpqeyrhqbvfogvtbrlnkxsefhpa] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-jyzyxcpqeyrhqbvfogvtbrlnkxsefhpa; apt -o Acquire::http::AllowRedirect=false update && apt -o Acquire::http::AllowRedirect=false --only-upgrade -y install apt'"'"''

@emkll
Copy link
Contributor

emkll commented Sep 12, 2019

Does deleting the ansible control persist folder (rm -r ~/.ansible/cp) resolve the issue for you? (see #4364 #4366)

@kushaldas
Copy link
Contributor Author

Does deleting the ansible control persist folder (rm -r ~/.ansible/cp) resolve the issue for you? (see #4364 #4366)

Solved, closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants