Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Unable to run tasks with become=true [ Privilege output closed while waiting for password prompt ] #1971

Closed
ipa-rar opened this issue Apr 26, 2024 · 2 comments

Comments

@ipa-rar
Copy link

ipa-rar commented Apr 26, 2024

I tried v2.9.69-beta and tried to Update and upgrade apt packages with this script

---
- hosts: all
  become: true
  connection: local
  tasks:
    - name: Update and upgrade apt packages
      ansible.builtin.apt:
        update_cache: yes
        upgrade: yes

fatal: [192.168.50.156]: FAILED! => {"msg": "privilege output closed while waiting for password prompt:\n/bin/sh: sudo: not found\n"}

This happens to all the playbooks that I have with become=true

@fiftin
Copy link
Collaborator

fiftin commented Apr 29, 2024

Did you provide SUDO creds?

image

@fiftin
Copy link
Collaborator

fiftin commented Apr 29, 2024

Do you have sudo on target server?

image

@semaphoreui semaphoreui locked and limited conversation to collaborators Apr 29, 2024
@fiftin fiftin converted this issue into discussion #1979 Apr 29, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants